ZyX
50f5bb8ade
kvec: Do not bother with making capacity a power of 2
...
This avoids gcc warnings about undefined behaviour.
2016-06-24 17:07:10 +03:00
ZyX
d9137b1a3a
kvec,typval_encode: Add new vector: the one with preallocated array
2016-05-30 23:34:28 +03:00
ZyX
7a44f9e343
lib/kvec: Fix remaining linter errors
2016-05-30 21:26:30 +03:00
ZyX
1ce1b85cc6
lib/kvec: Make code cleaner
2016-05-30 21:20:00 +03:00
ZyX
d007c2977b
lib/kvec: Do not use kv_init unless needed
2016-05-30 21:19:52 +03:00
ZyX
8cfb272c74
lib/kvec: Remove useless type argument from kv_push macros
2016-05-30 21:14:39 +03:00
ZyX
e213ba1506
eval: Add jsondecode() function
2016-04-18 02:45:49 +03:00
Björn Linse
44b2cef83a
bufhl: new mechanism for plugins to add highlights to a buffer
2016-02-23 21:29:01 +01:00
Thiago de Arruda
34c48aaf12
memory: Add free wrapper and refactor project to use it
...
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.
2015-04-13 08:22:44 -03:00
Thiago de Arruda
caf2fb8480
api: Enable usage of Arrays and Dictionaries as [k]vectors
...
- Rename a/n/m to items/size/capactity in kvec.h
- Add capactity field to Arrays/Dictionaries
2014-06-18 11:36:08 -03:00
Thiago de Arruda
89ded2dac8
Add kvec.h macro library
2014-05-28 08:52:54 -03:00