diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-30 14:41:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 14:41:34 +0800 |
commit | dc6d0d2daf69e2fdadda81feb97906dbc962a239 (patch) | |
tree | 7cf93549ec3282e1f42baf89e97d7890daeb5d70 /src/nvim/eval/typval.c | |
parent | cf8b2c0e74fd5e723b0c15c2ce84e6900fd322d3 (diff) | |
download | rneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.tar.gz rneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.tar.bz2 rneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.zip |
refactor: reorganize option header files (#25437)
- Move vimoption_T to option.h
- option_defs.h is for option-related types
- option_vars.h corresponds to Vim's option.h
- option_defs.h and option_vars.h don't include each other
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index a392fc8a03..1ff90dd201 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -50,6 +50,14 @@ typedef struct { bool item_compare_func_err; } sortinfo_T; +/// Structure representing one list item, used for sort array. +typedef struct { + listitem_T *item; ///< Sorted list item. + int idx; ///< Sorted list item index. +} ListSortItem; + +typedef int (*ListSorter)(const void *, const void *); + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "eval/typval.c.generated.h" #endif |