aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lib/kvec.h
Commit message (Collapse)AuthorAge
* kvec.h: kv_destroy: reinitialize after freeJustin M. Keyes2019-05-25
|
* refactor: introduce XFREE_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | | | | | | | | Unfortunately we cannot indiscriminately replace xfree() with XFREE_CLEAR(), because comparing pointers after freeing them is a common pattern. Example in `tv_list_remove_items()`: xfree(li); if (li == item2) { break; } Instead we can do it selectively/explicitly. ref #1375
* ui: use line-based rather than char-based updates in screen.cBjörn Linse2018-07-21
| | | | | | | | | | | | | Add ext_newgrid and ext_hlstate extensions. These use predefined highlights and line-segment based updates, for efficiency and simplicity.. The ext_hlstate extension in addition allows semantic identification of builtin and syntax highlights. Reimplement the old char-based updates in the remote UI layer, for compatibility. For the moment, this is still the default. The bulitin TUI uses the new line-based protocol. cmdline uses curwin cursor position when ext_cmdline is active.
* kvec: Silence PVS/V512: it is not needed to fill the whole arrayZyX2018-04-15
|
* build/msvc: Fix missing restrict keywordb-r-o-c-k2018-02-28
| | | | MSVC has the __restrict keyword and a marco is defined for it in `win_defs.h`.
* kvec: Add kv_Z which is like kv_A, but zero is the last valueZyX2017-10-08
|
* kvec: Add kv_drop() which is to be used like `(void)kv_pop(kvec)`ZyX2017-09-29
|
* kvec: Do not bother with making capacity a power of 2ZyX2016-06-24
| | | This avoids gcc warnings about undefined behaviour.
* kvec,typval_encode: Add new vector: the one with preallocated arrayZyX2016-05-30
|
* lib/kvec: Fix remaining linter errorsZyX2016-05-30
|
* lib/kvec: Make code cleanerZyX2016-05-30
|
* lib/kvec: Do not use kv_init unless neededZyX2016-05-30
|
* lib/kvec: Remove useless type argument from kv_push macrosZyX2016-05-30
|
* eval: Add jsondecode() functionZyX2016-04-18
|
* bufhl: new mechanism for plugins to add highlights to a bufferBjörn Linse2016-02-23
|
* memory: Add `free` wrapper and refactor project to use itThiago de Arruda2015-04-13
| | | | | | We already use wrappers for allocation, the new `xfree` function is the equivalent for deallocation and provides a way to fully replace the malloc implementation used by Neovim.
* api: Enable usage of Arrays and Dictionaries as [k]vectorsThiago de Arruda2014-06-18
| | | | | - Rename a/n/m to items/size/capactity in kvec.h - Add capactity field to Arrays/Dictionaries
* Add kvec.h macro libraryThiago de Arruda2014-05-28