|
#define | DICT_MAXNEST 100 |
|
#define | SL_SIZE ARRAY_SIZE(sl->sl_items) |
|
#define | FREE_JOIN_TOFREE(join) xfree((join)->tofree) |
|
#define | SWAP(a, b) |
|
#define | TYPVAL_ENCODE_ALLOW_SPECIALS false |
|
#define | TYPVAL_ENCODE_CONV_NIL(tv) |
|
#define | TYPVAL_ENCODE_CONV_BOOL(tv, num) |
|
#define | TYPVAL_ENCODE_CONV_NUMBER(tv, num) |
|
#define | TYPVAL_ENCODE_CONV_UNSIGNED_NUMBER(tv, num) |
|
#define | TYPVAL_ENCODE_CONV_FLOAT(tv, flt) |
|
#define | TYPVAL_ENCODE_CONV_STRING(tv, buf, len) |
|
#define | TYPVAL_ENCODE_CONV_STR_STRING(tv, buf, len) |
|
#define | TYPVAL_ENCODE_CONV_EXT_STRING(tv, buf, len, type) |
|
#define | TYPVAL_ENCODE_CONV_BLOB(tv, blob, len) |
|
#define | TYPVAL_ENCODE_CONV_FUNC_START(tv, fun) |
|
#define | TYPVAL_ENCODE_CONV_FUNC_BEFORE_ARGS(tv, len) |
|
#define | TYPVAL_ENCODE_CONV_FUNC_BEFORE_SELF(tv, len) |
|
#define | TYPVAL_ENCODE_CONV_FUNC_END(tv) _nothing_conv_func_end(tv, copyID) |
|
#define | TYPVAL_ENCODE_CONV_EMPTY_LIST(tv) |
|
#define | TYPVAL_ENCODE_CONV_EMPTY_DICT(tv, dict) |
|
#define | TYPVAL_ENCODE_CONV_LIST_START(tv, len) |
|
#define | TYPVAL_ENCODE_CONV_REAL_LIST_AFTER_START(tv, mpsv) |
|
#define | TYPVAL_ENCODE_CONV_LIST_BETWEEN_ITEMS(tv) |
|
#define | TYPVAL_ENCODE_CONV_LIST_END(tv) _nothing_conv_list_end(tv) |
|
#define | TYPVAL_ENCODE_CONV_DICT_START(tv, dict, len) |
|
#define | TYPVAL_ENCODE_CONV_REAL_DICT_AFTER_START(tv, dict, mpsv) |
|
#define | TYPVAL_ENCODE_SPECIAL_DICT_KEY_CHECK(tv, dict) |
|
#define | TYPVAL_ENCODE_CONV_DICT_AFTER_KEY(tv, dict) |
|
#define | TYPVAL_ENCODE_CONV_DICT_BETWEEN_ITEMS(tv, dict) |
|
#define | TYPVAL_ENCODE_CONV_DICT_END(tv, dict) |
|
#define | TYPVAL_ENCODE_CONV_RECURSE(val, conv_type) |
|
#define | TYPVAL_ENCODE_SCOPE static |
|
#define | TYPVAL_ENCODE_NAME nothing |
|
#define | TYPVAL_ENCODE_FIRST_ARG_TYPE const void *const |
|
#define | TYPVAL_ENCODE_FIRST_ARG_NAME ignored |
|
#define | CHANGE_LOCK(lock, var) |
|
#define | FUNC_ERROR "E703: Using a Funcref as a Number" |
|
#define | FUNC_ERROR "E729: using Funcref as a String" |
|
|
listitem_T * | tv_list_item_remove (list_T *const l, listitem_T *const item) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_watch_add (list_T *const l, listwatch_T *const lw) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_watch_remove (list_T *const l, listwatch_T *const lwrem) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_watch_fix (list_T *const l, const listitem_T *const item) FUNC_ATTR_NONNULL_ALL |
|
list_T * | tv_list_alloc (const ptrdiff_t len) FUNC_ATTR_NONNULL_RET |
|
void | tv_list_init_static10 (staticList10_T *const sl) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_init_static (list_T *const l) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_free_contents (list_T *const l) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_free_list (list_T *const l) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_free (list_T *const l) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_unref (list_T *const l) |
|
void | tv_list_drop_items (list_T *const l, listitem_T *const item, listitem_T *const item2) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_remove_items (list_T *const l, listitem_T *const item, listitem_T *const item2) FUNC_ATTR_NONNULL_ALL |
| Like tv_list_drop_items, but also frees all removed items. More...
|
|
void | tv_list_move_items (list_T *const l, listitem_T *const item, listitem_T *const item2, list_T *const tgt_l, const int cnt) FUNC_ATTR_NONNULL_ALL |
|
void | tv_list_insert (list_T *const l, listitem_T *const ni, listitem_T *const item) FUNC_ATTR_NONNULL_ARG(1 |
|
int | tv_list_join (garray_T *const gap, list_T *const l, const char *const sep) FUNC_ATTR_NONNULL_ARG(1) |
|
bool | tv_list_equal (list_T *const l1, list_T *const l2, const bool ic, const bool recursive) FUNC_ATTR_WARN_UNUSED_RESULT |
|
void | tv_list_reverse (list_T *const l) |
|
void | tv_list_item_sort (list_T *const l, ListSortItem *const ptrs, const ListSorter item_compare_func, bool *errp) FUNC_ATTR_NONNULL_ARG(3 |
|
void | if (len<=1) |
|
| list_log (l, NULL, NULL, "sort") |
|
| TV_LIST_ITER (l, li, { ptrs[i].item=li;ptrs[i].idx=i;i++;}) |
|
| qsort (ptrs,(size_t) len, sizeof(ListSortItem), item_compare_func) |
|
| if (!(*errp)) |
|
listitem_T * | tv_list_find (list_T *const l, int n) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT |
|
varnumber_T | tv_list_find_nr (list_T *const l, const int n, bool *const ret_error) FUNC_ATTR_WARN_UNUSED_RESULT |
|
const char * | tv_list_find_str (list_T *const l, const int n) FUNC_ATTR_WARN_UNUSED_RESULT |
|
long | tv_list_idx_of_item (const list_T *const l, const listitem_T *const item) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_PURE |
|
void | tv_dict_watcher_add (dict_T *const dict, const char *const key_pattern, const size_t key_pattern_len, Callback callback) FUNC_ATTR_NONNULL_ARG(2) |
|
bool | tv_callback_equal (const Callback *cb1, const Callback *cb2) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
void | callback_free (Callback *callback) FUNC_ATTR_NONNULL_ALL |
| Unref/free callback. More...
|
|
void | callback_put (Callback *cb, typval_T *tv) FUNC_ATTR_NONNULL_ALL |
| Copy a callback into a typval_T. More...
|
|
void | callback_copy (Callback *dest, Callback *src) FUNC_ATTR_NONNULL_ALL |
|
bool | tv_dict_watcher_remove (dict_T *const dict, const char *const key_pattern, const size_t key_pattern_len, Callback callback) FUNC_ATTR_NONNULL_ARG(2) |
|
void | tv_dict_watcher_notify (dict_T *const dict, const char *const key, typval_T *const newtv, typval_T *const oldtv) FUNC_ATTR_NONNULL_ARG(1 |
|
| if (newtv) |
|
| if (oldtv) |
|
| QUEUE_FOREACH (w, &dict->watchers, { DictWatcher *watcher=tv_dict_watcher_node_data(w);if(!watcher->busy &&tv_dict_watcher_matches(watcher, key)) { rettv=TV_INITIAL_VALUE;watcher->busy=true;callback_call(&watcher->callback, 3, argv, &rettv);watcher->busy=false;tv_clear(&rettv);if(watcher->needs_free) { any_needs_free=true;} } }) if(any_needs_free) |
|
| tv_dict_unref (dict) |
|
| for (size_t i=1;i< ARRAY_SIZE(argv);i++) |
|
dictitem_T * | tv_dict_item_alloc_len (const char *const key, const size_t key_len) FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_MALLOC |
|
dictitem_T * | tv_dict_item_alloc (const char *const key) FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_MALLOC |
|
void | tv_dict_item_free (dictitem_T *const item) FUNC_ATTR_NONNULL_ALL |
|
dictitem_T * | tv_dict_item_copy (dictitem_T *const di) FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
void | tv_dict_item_remove (dict_T *const dict, dictitem_T *const item) FUNC_ATTR_NONNULL_ALL |
|
dict_T * | tv_dict_alloc (void) |
|
void | tv_dict_free_contents (dict_T *const d) FUNC_ATTR_NONNULL_ALL |
|
void | tv_dict_free_dict (dict_T *const d) FUNC_ATTR_NONNULL_ALL |
|
void | tv_dict_free (dict_T *const d) FUNC_ATTR_NONNULL_ALL |
|
void | tv_dict_unref (dict_T *const d) |
|
dictitem_T * | tv_dict_find (const dict_T *const d, const char *const key, const ptrdiff_t len) FUNC_ATTR_NONNULL_ARG(2) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT |
|
int | tv_dict_get_tv (dict_T *d, const char *const key, typval_T *rettv) |
|
varnumber_T | tv_dict_get_number (const dict_T *const d, const char *const key) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT |
|
char ** | tv_dict_to_env (dict_T *denv) |
| Converts a dict to an environment. More...
|
|
char * | tv_dict_get_string (const dict_T *const d, const char *const key, const bool save) FUNC_ATTR_WARN_UNUSED_RESULT |
|
const char * | tv_dict_get_string_buf (const dict_T *const d, const char *const key, char *const numbuf) FUNC_ATTR_WARN_UNUSED_RESULT |
|
const char * | tv_dict_get_string_buf_chk (const dict_T *const d, const char *const key, const ptrdiff_t key_len, char *const numbuf, const char *const def) FUNC_ATTR_WARN_UNUSED_RESULT |
|
bool | tv_dict_get_callback (dict_T *const d, const char *const key, const ptrdiff_t key_len, Callback *const result) FUNC_ATTR_NONNULL_ARG(2 |
|
| if (di==NULL) |
|
| if (!tv_is_func(di->di_tv) &&di->di_tv.v_type !=VAR_STRING) |
|
int | tv_dict_add (dict_T *const d, dictitem_T *const item) FUNC_ATTR_NONNULL_ALL |
|
int | tv_dict_add_list (dict_T *const d, const char *const key, const size_t key_len, list_T *const list) FUNC_ATTR_NONNULL_ALL |
|
int | tv_dict_add_tv (dict_T *d, const char *key, const size_t key_len, typval_T *tv) |
|
int | tv_dict_add_dict (dict_T *const d, const char *const key, const size_t key_len, dict_T *const dict) FUNC_ATTR_NONNULL_ALL |
|
int | tv_dict_add_nr (dict_T *const d, const char *const key, const size_t key_len, const varnumber_T nr) |
|
int | tv_dict_add_float (dict_T *const d, const char *const key, const size_t key_len, const float_T nr) |
|
int | tv_dict_add_bool (dict_T *const d, const char *const key, const size_t key_len, BoolVarValue val) |
|
int | tv_dict_add_str (dict_T *const d, const char *const key, const size_t key_len, const char *const val) FUNC_ATTR_NONNULL_ARG(1 |
|
int int | tv_dict_add_str_len (dict_T *const d, const char *const key, const size_t key_len, const char *const val, int len) FUNC_ATTR_NONNULL_ARG(1 |
|
int int | if (val !=NULL) |
|
return | tv_dict_add_allocated_str (d, key, key_len, s) |
|
int | tv_dict_add_allocated_str (dict_T *const d, const char *const key, const size_t key_len, char *const val) FUNC_ATTR_NONNULL_ARG(1 |
|
| if (tv_dict_add(d, item)==FAIL) |
|
void | tv_dict_clear (dict_T *const d) FUNC_ATTR_NONNULL_ALL |
|
void | tv_dict_extend (dict_T *const d1, dict_T *const d2, const char *const action) FUNC_ATTR_NONNULL_ALL |
|
bool | tv_dict_equal (dict_T *const d1, dict_T *const d2, const bool ic, const bool recursive) FUNC_ATTR_WARN_UNUSED_RESULT |
|
dict_T * | tv_dict_copy (const vimconv_T *const conv, dict_T *const orig, const bool deep, const int copyID) |
|
void | tv_dict_set_keys_readonly (dict_T *const dict) FUNC_ATTR_NONNULL_ALL |
|
blob_T * | tv_blob_alloc (void) |
|
void | tv_blob_free (blob_T *const b) FUNC_ATTR_NONNULL_ALL |
|
void | tv_blob_unref (blob_T *const b) |
|
bool | tv_blob_equal (const blob_T *const b1, const blob_T *const b2) FUNC_ATTR_WARN_UNUSED_RESULT |
|
list_T * | tv_list_alloc_ret (typval_T *const ret_tv, const ptrdiff_t len) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET |
|
dict_T * | tv_dict_alloc_lock (VarLockStatus lock) FUNC_ATTR_NONNULL_RET |
|
void | tv_dict_alloc_ret (typval_T *const ret_tv) FUNC_ATTR_NONNULL_ALL |
|
void | tv_blob_alloc_ret (typval_T *const ret_tv) FUNC_ATTR_NONNULL_ALL |
|
void | tv_blob_copy (typval_T *const from, typval_T *const to) FUNC_ATTR_NONNULL_ALL |
|
void | tv_clear (typval_T *const tv) |
|
void | tv_free (typval_T *tv) |
|
void | tv_copy (const typval_T *const from, typval_T *const to) |
|
void | tv_item_lock (typval_T *const tv, const int deep, const bool lock, const bool check_refcount) FUNC_ATTR_NONNULL_ALL |
|
bool | tv_islocked (const typval_T *const tv) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL |
|
bool | tv_check_lock (const typval_T *tv, const char *name, size_t name_len) FUNC_ATTR_WARN_UNUSED_RESULT |
|
bool | var_check_lock (VarLockStatus lock, const char *name, size_t name_len) |
|
bool | tv_equal (typval_T *const tv1, typval_T *const tv2, const bool ic, const bool recursive) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL |
|
bool | tv_check_str_or_nr (const typval_T *const tv) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL |
|
bool | tv_check_num (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
bool | tv_check_str (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
varnumber_T | tv_get_number (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
varnumber_T | tv_get_number_chk (const typval_T *const tv, bool *const ret_error) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ARG(1) |
|
linenr_T | tv_get_lnum (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
float_T | tv_get_float (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
int | tv_check_for_string (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_PURE |
|
int | tv_check_for_nonempty_string (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_PURE |
|
const char * | tv_get_string_buf_chk (const typval_T *const tv, char *const buf) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
const char * | tv_get_string_chk (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
|
const char * | tv_get_string (const typval_T *const tv) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET FUNC_ATTR_WARN_UNUSED_RESULT |
|
const char * | tv_get_string_buf (const typval_T *const tv, char *const buf) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET FUNC_ATTR_WARN_UNUSED_RESULT |
|