mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
Merge branch 'master' into hide-container-impl
This commit is contained in:
@@ -346,7 +346,7 @@ int encode_read_from_list(ListReaderState *const state, char *const buf,
|
||||
do { \
|
||||
const char *const fun_ = (const char *)(fun); \
|
||||
if (fun_ == NULL) { \
|
||||
EMSG2(_(e_intern2), "string(): NULL function name"); \
|
||||
internal_error("string(): NULL function name"); \
|
||||
ga_concat(gap, "function(NULL"); \
|
||||
} else { \
|
||||
ga_concat(gap, "function("); \
|
||||
|
@@ -1880,14 +1880,20 @@ static inline void _nothing_conv_func_end(typval_T *const tv, const int copyID)
|
||||
tv->v_lock = VAR_UNLOCKED; \
|
||||
} while (0)
|
||||
|
||||
static inline void _nothing_conv_empty_dict(typval_T *const tv,
|
||||
dict_T **const dictp)
|
||||
FUNC_ATTR_ALWAYS_INLINE FUNC_ATTR_NONNULL_ARG(2)
|
||||
{
|
||||
tv_dict_unref(*dictp);
|
||||
*dictp = NULL;
|
||||
if (tv != NULL) {
|
||||
tv->v_lock = VAR_UNLOCKED;
|
||||
}
|
||||
}
|
||||
#define TYPVAL_ENCODE_CONV_EMPTY_DICT(tv, dict) \
|
||||
do { \
|
||||
assert((void *)&dict != (void *)&TYPVAL_ENCODE_NODICT_VAR); \
|
||||
tv_dict_unref((dict_T *)dict); \
|
||||
*((dict_T **)&dict) = NULL; \
|
||||
if (tv != NULL) { \
|
||||
((typval_T *)tv)->v_lock = VAR_UNLOCKED; \
|
||||
} \
|
||||
_nothing_conv_empty_dict(tv, ((dict_T **)&dict)); \
|
||||
} while (0)
|
||||
|
||||
static inline int _nothing_conv_real_list_after_start(
|
||||
|
@@ -624,7 +624,7 @@ _convert_one_value_regular_dict: {}
|
||||
break;
|
||||
}
|
||||
case VAR_UNKNOWN: {
|
||||
EMSG2(_(e_intern2), STR(_TYPVAL_ENCODE_CONVERT_ONE_VALUE) "()");
|
||||
internal_error(STR(_TYPVAL_ENCODE_CONVERT_ONE_VALUE) "()");
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user