diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-07-30 21:49:32 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-07-31 21:50:04 +0200 |
| commit | 3e01dcddbe8b8a286c78af0a7a63d7412be8443f (patch) | |
| tree | 8a17cbbc345f23823883362f7e2404b56725c681 /runtime/plugin/python_setup.vim | |
| parent | 726d1a92d243a8b7cb4b221d64e4523b7a89aaf4 (diff) | |
| download | rneovim-3e01dcddbe8b8a286c78af0a7a63d7412be8443f.tar.gz rneovim-3e01dcddbe8b8a286c78af0a7a63d7412be8443f.tar.bz2 rneovim-3e01dcddbe8b8a286c78af0a7a63d7412be8443f.zip | |
refactor(options): memory management
Problem:
Numerous callers have to manually check optval ownership (i.e. whether,
and how, to release) via `is_callback_option`, `option_is_global_local`,
etc. This is fragile, hard to use correctly; and if we introduce another
optval variant in the future, we'll have to redo all of these careful
checks and boilerplate again.
Solution:
Provide a unified system and use it everywhere:
optval_free_owned
optval_is_owned
optval_own
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions