aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/rbuffer.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-05-20 08:06:48 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-07-01 05:40:53 -0300
commit4f5b250d4effc276157cca9b8224f9e9ca25b33c (patch)
tree6a04ab7139c6f946fe752d6e19f2068c3e28dc09 /src/nvim/rbuffer.c
parentd6ed2b3a39a2b4ea78fe9461b640eeeca53880bf (diff)
downloadrneovim-4f5b250d4effc276157cca9b8224f9e9ca25b33c.tar.gz
rneovim-4f5b250d4effc276157cca9b8224f9e9ca25b33c.tar.bz2
rneovim-4f5b250d4effc276157cca9b8224f9e9ca25b33c.zip
klib: Improve klist.h
- Add `kl_shift_at` macro and backing function. This can be used to shift elements at arbitrary positions. `kl_shift` is now defined on top of the new macro. - Change shift/push API, now `kl_push` accepts an object as parameter and `kl_shift` returns the object instead of a status. An assertion against shifting at the end of a list(or empty lists) was added. - Add `kl_iter` and `kl_iter_at` macros. `kl_iter_at` is for starting the iteration at arbitrary positions.
Diffstat (limited to 'src/nvim/rbuffer.c')
0 files changed, 0 insertions, 0 deletions