diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-29 03:36:47 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-27 00:12:42 +0300 |
commit | 3d48c35d6bfa83ba3ae621fa9ec3f512da199f59 (patch) | |
tree | df801c433c2be1eb94aafefce914e24113b888fa /test/functional/lua/commands_spec.lua | |
parent | 3531d8c8eaa6783637f510dbc5dbd58c9d435b61 (diff) | |
download | rneovim-3d48c35d6bfa83ba3ae621fa9ec3f512da199f59.tar.gz rneovim-3d48c35d6bfa83ba3ae621fa9ec3f512da199f59.tar.bz2 rneovim-3d48c35d6bfa83ba3ae621fa9ec3f512da199f59.zip |
ex_getln: Refactor script_get()
1. Use `char *` for strings.
2. Add `const` qualifiers.
3. Add attributes and documentation.
4. Handle skipping *inside*.
5. Handle non-heredoc argument also inside: deferring this to the caller is
pointless because all callers need the same thing. Though new ex_lua caller
may live without allocations in this case, allocating nevertheless produces
cleaner code.
6. Note that all callers call script_get with `eap` and `eap->arg`. Thus second
argument is useless in practice: it is one and the same always and can be
reached through the first argument.
Diffstat (limited to 'test/functional/lua/commands_spec.lua')
0 files changed, 0 insertions, 0 deletions