aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-05-30 16:56:45 +0200
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-06-08 19:15:16 +0200
commitb5640b136caf6e85337fab5309446a999419f6cb (patch)
tree031260b4b5f318ccce5a30f1222cab69da0e7ec5 /src/nvim/api/vim.c
parent0d91b067aca3bf381b2d212370f962144b75614d (diff)
downloadrneovim-b5640b136caf6e85337fab5309446a999419f6cb.tar.gz
rneovim-b5640b136caf6e85337fab5309446a999419f6cb.tar.bz2
rneovim-b5640b136caf6e85337fab5309446a999419f6cb.zip
msgpack: NULL terminate incoming strings
It's a 1-byte loss of memory but it allows us to skip copying and NULL-terminating strings when interacting with vim functions that accept C strings. This lowers the pressure on the allocator and saves lines of code (no more dup/free pairs).
Diffstat (limited to 'src/nvim/api/vim.c')
0 files changed, 0 insertions, 0 deletions