diff options
Diffstat (limited to 'src/nvim/eval/encode.h')
-rw-r--r-- | src/nvim/eval/encode.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/nvim/eval/encode.h b/src/nvim/eval/encode.h index fe1b951e3c..6d1c0b61c5 100644 --- a/src/nvim/eval/encode.h +++ b/src/nvim/eval/encode.h @@ -3,8 +3,7 @@ #include <msgpack/pack.h> #include <string.h> -#include "nvim/eval/typval.h" -#include "nvim/func_attr.h" +#include "nvim/eval/typval_defs.h" #include "nvim/garray_defs.h" /// Convert Vimscript value to msgpack string @@ -33,22 +32,6 @@ typedef struct { size_t li_length; ///< Length of the string inside the read item. } ListReaderState; -static inline ListReaderState encode_init_lrstate(const list_T *list) - REAL_FATTR_NONNULL_ALL; - -/// Initialize ListReaderState structure -static inline ListReaderState encode_init_lrstate(const list_T *const list) -{ - return (ListReaderState) { - .list = list, - .li = tv_list_first(list), - .offset = 0, - .li_length = (TV_LIST_ITEM_TV(tv_list_first(list))->vval.v_string == NULL - ? 0 - : strlen(TV_LIST_ITEM_TV(tv_list_first(list))->vval.v_string)), - }; -} - /// Array mapping values from SpecialVarValue enum to names extern const char *const encode_bool_var_names[]; extern const char *const encode_special_var_names[]; |