diff options
author | Scott Prager <splinterofchaos@gmail.com> | 2014-09-03 22:22:50 -0400 |
---|---|---|
committer | Scott Prager <splinterofchaos@gmail.com> | 2014-12-11 20:30:00 -0500 |
commit | 171445ef3441a4dbc9958871760e42460ba7404c (patch) | |
tree | bae2dfd18155667de67a76199b9b4626a33abe9f /src/nvim/eval.c | |
parent | 5fdca47962fac359e616ef8c6dee3a793cb08168 (diff) | |
download | rneovim-171445ef3441a4dbc9958871760e42460ba7404c.tar.gz rneovim-171445ef3441a4dbc9958871760e42460ba7404c.tar.bz2 rneovim-171445ef3441a4dbc9958871760e42460ba7404c.zip |
Refactor str_to_reg().
- Update the doxygen comments.
- Use more descriptive types.
- Localize variables.
- Find the '\n' with memchr instead of a for loop.
- Remove `if (size)` checks before memmove
since memmove(dst,src,0) is a noop.
- Use memcpy instead since the pointers don't alias.
- Use xmemdupz instead of vim_strnsave.
- xrealloc instead of xmalloc/memcpy.
- Use memcnt/xmemscan/memchrsub.
Diffstat (limited to 'src/nvim/eval.c')
0 files changed, 0 insertions, 0 deletions