aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval.c
Commit message (Collapse)AuthorAge
...
* *: Fix linter errorsZyX2017-12-24
|
* eval: Replace some tv_list_item_remove() callsZyX2017-12-24
| | | | | There is nothing wrong with them, just it is generally better to remove a range then to remove items individually.
* eval: Rename tv_list_remove_items() to tv_list_drop_items()ZyX2017-12-24
| | | tv_list_remove_items() may cause confusion with tv_list_item_remove()
* eval/typval: Make tv_list_item_remove return pointer to the next itemZyX2017-12-24
|
* eval/typval: Remove tv_list_item_free() as it is unusedZyX2017-12-24
|
* eval/typval: Make tv_list_item_alloc staticZyX2017-12-24
| | | | Better write this bit in lua then make reviewers or clint filter out tv_list_item_alloc().
* *: Remove most calls to tv_list_item_allocZyX2017-12-24
| | | | Still left calls in eval/typval.c and test/unit/eval/helpers.lua. Latter is the only reason why function did not receive `static` modifier.
* Merge branch 'master' into hide-container-implZyX2017-12-16
|\
| * typval_encode.c.h: avoid -Wnonnull-compare warning (#7712)Justin M. Keyes2017-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * typval_encode.c.h: avoid -Wnonnull-compare warning closes #6847 The NULL check is needed because TYPVAL_ENCODE_CONV_EMPTY_DICT may be invoked with literal `NULL`. Warning occurs even for `Debug` build-type: neovim/src/nvim/eval/typval.c: In function ‘_typval_encode_nothing_convert_one_value’: neovim/src/nvim/eval/typval.c:1802:10: warning: nonnull argument ‘tv’ compared to NULL [-Wnonnull-compare] if (tv != NULL) { \ ^ ../src/nvim/eval/typval_encode.c.h:398:9: note: in expansion of macro ‘TYPVAL_ENCODE_CONV_EMPTY_DICT’ TYPVAL_ENCODE_CONV_EMPTY_DICT(tv, tv->vval.v_dict); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc version: gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406 * fixup! typval_encode.c.h: avoid -Wnonnull-compare warning
* | *: Fix some problems found during reviewZyX2017-12-15
| | | | | | | | Still missing: problems in window.c, it should be possible to construct a test for them.
* | *: Fix linter errorsZyX2017-12-11
| |
* | *: Finish hiding list implementationZyX2017-12-11
| |
* | *: Start hiding list implementationZyX2017-12-10
|/ | | | Most of files, except for eval.c and eval/* were only processed by perl.
* channels: allow bytes sockets and stdio, and buffered bytes outputBjörn Linse2017-11-24
|
* channels: refactorBjörn Linse2017-11-24
|
* cmdline: CmdlineEnter and CmdlineLeave autocommands (#7422)Björn Linse2017-11-22
| | | | | | | | | | vim-patch:fafcf0dd59fd patch 8.0.1206: no autocmd for entering or leaving the command line Problem: No autocmd for entering or leaving the command line. Solution: Add CmdlineEnter and CmdlineLeave. https://github.com/vim/vim/commit/fafcf0dd59fd9c4ef743bb333ae40d1d322b6079
* eval/typval: Add tv_dict_add_allocated_str() functionZyX2017-07-02
|
* *: Fix conversion warnings for tv_get_number*()James McCoy2017-06-06
|
* eval/typval: Convert string to varnumber_T instead of intermediate longJames McCoy2017-06-06
|
* Merge #6480 from ZyX-I/colored-cmdline'/input-dictJustin M. Keyes2017-05-13
|\
| * eval/typval: Fix numbuf parameter documentationZyX2017-05-13
| |
| * eval: Refactor get_user_input to support dictionaryZyX2017-05-10
| |
* | *: Use __attribute__((fallthrough)) where comments aren't supportedJames McCoy2017-05-12
|/ | | | | | | | | Although GCC now detects possibly unintentional fall through, there rules around which the comments are detected are rather strict. In cases where a comment isn't detected, upstream [recommends] using their fallthrough attribute. [recommends]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817#c11
* Merge branch 'master' into lazier-arg_errmsg-gettextZyX2017-04-21
|\
| * *: Add comment to all C filesZyX2017-04-19
| |
| * eval/typval: Remove FUNC_ATTR_MALLOC from tv_list_alloc_retZyX2017-04-15
| | | | | | | | Same as tv_list_alloc, but additionally ret_tv receives pointer to the newly allocated list.
| * eval/typval: Remove FUNC_ATTR_MALLOC from tv_dict_allocZyX2017-04-15
| | | | | | | | | | | | Allocated dict points to previously allocated dict. Queue in allocated dict points to itself. Hashtab in allocated dict points to inside itself. Allocated dict is saved to gc_first_dict.
| * eval/typval: Remove FUNC_ATTR_MALLOC from tv_dict_item_copyZyX2017-04-15
| | | | | | Allocated storage may receive pointer to the list after tv_copy().
| * eval/typval: Remove FUNC_ATTR_MALLOC from tv_list_allocZyX2017-04-15
| | | | | | | | Allocated list points to previously allocated list. Allocated list is saved to gc_first_list.
* | eval/typval: Do not translate tv_clear argument, this is uselessZyX2017-04-15
| |
* | eval: Add comment regarding why special values are neededZyX2017-04-14
| |
* | eval: Change the point at which arg_errmsg and its length are changedZyX2017-04-14
|/ | | | Ref #6437
* perf: tv_clear(): Cache gettext() result. (#6519)Justin M. Keyes2017-04-14
| | | Closes #6437
* eval/typval,api/buffer: Fix review commentsZyX2017-03-29
|
* eval/typval: Allow NULL dict as tv_dict_get_callback() argumentZyX2017-03-29
| | | Also removes NULL key input: tv_dict_find() does not allow this.
* unittests: Add tv_get number testsZyX2017-03-29
|
* unittests: Test locks sectionZyX2017-03-29
|
* unittests: Add tests for tv_clear()ZyX2017-03-29
|
* eval: Use tv_is_func in place of ==VAR_FUNC||==VAR_PARTIALZyX2017-03-29
| | | | Also fixes same error as in vim/vim#1557
* unittests: Add tv_dict_add* unit testsZyX2017-03-29
| | | | | | | | Also fixes incorrect location of `tv_dict_add` function and three bugs in other functions: 1. `tv_dict_add_list` may free list it does not own (vim/vim#1555). 2. `tv_dict_add_dict` may free dictionary it does not own (vim/vim#1555). 3. `tv_dict_add_dict` ignores `key_len` argument.
* eval/typval: Refactor errors a bit: use emsgf alwaysZyX2017-03-29
|
* eval/typval: Fix SEGV in test_alot.vim testZyX2017-03-29
|
* eval/typval: Fix -Werror=return-typeZyX2017-03-29
|
* *: Make some more things const and with lengthZyX2017-03-29
|
* eval: Make sure that v:_null_dict does not crash dictwatcher*()ZyX2017-03-29
| | | Ref #4615
* eval: Move part of dictwatcher* functions to eval/typvalZyX2017-03-29
|
* eval/typval: More `const` qualifiers in `tv_dict*` function signaturesZyX2017-03-29
|
* unittests: Add tests for tv_list_idx_of_itemZyX2017-03-29
|
* unittests: Add tests for tv_list_find*() functionsZyX2017-03-29
| | | | | | | | Additional modifications: - More `const` qualifiers in tested functions. - `tv_list_find_str()` second argument is more in-line with other `tv_list_find*()` functions.
* eval/typval: Add tv_list_equal() tests, compare NULL lists equalZyX2017-03-29
|