Mercurial > vim
annotate src/proto/eval.pro @ 4287:dc3efb6d5a08 v7.3.893
updated for version 7.3.893
Problem: Crash when using b:, w: or t: after closing the buffer, window or
tabpage.
Solution: Allocate the dictionary instead of having it part of the
buffer/window/tabpage struct. (Yukihiro Nakadaira)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 15 Apr 2013 12:27:36 +0200 |
parents | 16e8a09e8ab0 |
children | 7eaccdaa5304 |
rev | line source |
---|---|
7 | 1 /* eval.c */ |
1151 | 2 void eval_init __ARGS((void)); |
3 void eval_clear __ARGS((void)); | |
4 char_u *func_name __ARGS((void *cookie)); | |
5 linenr_T *func_breakpoint __ARGS((void *cookie)); | |
6 int *func_dbg_tick __ARGS((void *cookie)); | |
7 int func_level __ARGS((void *cookie)); | |
8 int current_func_returned __ARGS((void)); | |
9 void set_internal_string_var __ARGS((char_u *name, char_u *value)); | |
10 int var_redir_start __ARGS((char_u *name, int append)); | |
11 void var_redir_str __ARGS((char_u *value, int value_len)); | |
12 void var_redir_stop __ARGS((void)); | |
13 int eval_charconvert __ARGS((char_u *enc_from, char_u *enc_to, char_u *fname_from, char_u *fname_to)); | |
14 int eval_printexpr __ARGS((char_u *fname, char_u *args)); | |
15 void eval_diff __ARGS((char_u *origfile, char_u *newfile, char_u *outfile)); | |
16 void eval_patch __ARGS((char_u *origfile, char_u *difffile, char_u *outfile)); | |
17 int eval_to_bool __ARGS((char_u *arg, int *error, char_u **nextcmd, int skip)); | |
18 char_u *eval_to_string_skip __ARGS((char_u *arg, char_u **nextcmd, int skip)); | |
19 int skip_expr __ARGS((char_u **pp)); | |
1733 | 20 char_u *eval_to_string __ARGS((char_u *arg, char_u **nextcmd, int convert)); |
1151 | 21 char_u *eval_to_string_safe __ARGS((char_u *arg, char_u **nextcmd, int use_sandbox)); |
22 int eval_to_number __ARGS((char_u *expr)); | |
23 list_T *eval_spell_expr __ARGS((char_u *badword, char_u *expr)); | |
24 int get_spellword __ARGS((list_T *list, char_u **pp)); | |
25 typval_T *eval_expr __ARGS((char_u *arg, char_u **nextcmd)); | |
3709 | 26 int call_vim_function __ARGS((char_u *func, int argc, char_u **argv, int safe, int str_arg_only, typval_T *rettv)); |
4287 | 27 long call_func_retnr __ARGS((char_u *func, int argc, char_u **argv, int safe)); |
1151 | 28 void *call_func_retstr __ARGS((char_u *func, int argc, char_u **argv, int safe)); |
29 void *call_func_retlist __ARGS((char_u *func, int argc, char_u **argv, int safe)); | |
30 void *save_funccal __ARGS((void)); | |
31 void restore_funccal __ARGS((void *vfc)); | |
32 void prof_child_enter __ARGS((proftime_T *tm)); | |
33 void prof_child_exit __ARGS((proftime_T *tm)); | |
34 int eval_foldexpr __ARGS((char_u *arg, int *cp)); | |
35 void ex_let __ARGS((exarg_T *eap)); | |
36 void *eval_for_line __ARGS((char_u *arg, int *errp, char_u **nextcmdp, int skip)); | |
37 int next_for_item __ARGS((void *fi_void, char_u *arg)); | |
38 void free_for_info __ARGS((void *fi_void)); | |
39 void set_context_for_expression __ARGS((expand_T *xp, char_u *arg, cmdidx_T cmdidx)); | |
40 void ex_call __ARGS((exarg_T *eap)); | |
41 void ex_unlet __ARGS((exarg_T *eap)); | |
42 void ex_lockvar __ARGS((exarg_T *eap)); | |
43 int do_unlet __ARGS((char_u *name, int forceit)); | |
44 void del_menutrans_vars __ARGS((void)); | |
45 char_u *get_user_var_name __ARGS((expand_T *xp, int idx)); | |
46 list_T *list_alloc __ARGS((void)); | |
47 void list_unref __ARGS((list_T *l)); | |
48 void list_free __ARGS((list_T *l, int recurse)); | |
3618 | 49 listitem_T *listitem_alloc __ARGS((void)); |
50 void listitem_remove __ARGS((list_T *l, listitem_T *item)); | |
1151 | 51 dictitem_T *dict_lookup __ARGS((hashitem_T *hi)); |
3618 | 52 listitem_T *list_find __ARGS((list_T *l, long n)); |
1733 | 53 char_u *list_find_str __ARGS((list_T *l, long idx)); |
3618 | 54 void list_append __ARGS((list_T *l, listitem_T *item)); |
2050
afcf9db31561
updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents:
1969
diff
changeset
|
55 int list_append_tv __ARGS((list_T *l, typval_T *tv)); |
1151 | 56 int list_append_dict __ARGS((list_T *list, dict_T *dict)); |
1733 | 57 int list_append_string __ARGS((list_T *l, char_u *str, int len)); |
3618 | 58 int list_insert_tv __ARGS((list_T *l, typval_T *tv, listitem_T *item)); |
59 void list_remove __ARGS((list_T *l, listitem_T *item, listitem_T *item2)); | |
1151 | 60 int garbage_collect __ARGS((void)); |
3618 | 61 void set_ref_in_ht __ARGS((hashtab_T *ht, int copyID)); |
62 void set_ref_in_list __ARGS((list_T *l, int copyID)); | |
63 void set_ref_in_item __ARGS((typval_T *tv, int copyID)); | |
1151 | 64 dict_T *dict_alloc __ARGS((void)); |
3078 | 65 void dict_unref __ARGS((dict_T *d)); |
2050
afcf9db31561
updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents:
1969
diff
changeset
|
66 dictitem_T *dictitem_alloc __ARGS((char_u *key)); |
afcf9db31561
updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents:
1969
diff
changeset
|
67 void dictitem_free __ARGS((dictitem_T *item)); |
afcf9db31561
updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents:
1969
diff
changeset
|
68 int dict_add __ARGS((dict_T *d, dictitem_T *item)); |
1151 | 69 int dict_add_nr_str __ARGS((dict_T *d, char *key, long nr, char_u *str)); |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2185
diff
changeset
|
70 int dict_add_list __ARGS((dict_T *d, char *key, list_T *list)); |
2185 | 71 dictitem_T *dict_find __ARGS((dict_T *d, char_u *key, int len)); |
1151 | 72 char_u *get_dict_string __ARGS((dict_T *d, char_u *key, int save)); |
73 long get_dict_number __ARGS((dict_T *d, char_u *key)); | |
74 char_u *get_function_name __ARGS((expand_T *xp, int idx)); | |
75 char_u *get_expr_name __ARGS((expand_T *xp, int idx)); | |
3618 | 76 int func_call __ARGS((char_u *name, typval_T *args, dict_T *selfdict, typval_T *rettv)); |
4074 | 77 void mzscheme_call_vim __ARGS((char_u *name, typval_T *args, typval_T *rettv)); |
1496 | 78 long do_searchpair __ARGS((char_u *spat, char_u *mpat, char_u *epat, int dir, char_u *skip, int flags, pos_T *match_pos, linenr_T lnum_stop, long time_limit)); |
1151 | 79 void set_vim_var_nr __ARGS((int idx, long val)); |
80 long get_vim_var_nr __ARGS((int idx)); | |
81 char_u *get_vim_var_str __ARGS((int idx)); | |
1733 | 82 list_T *get_vim_var_list __ARGS((int idx)); |
1969 | 83 void set_vim_var_char __ARGS((int c)); |
1751 | 84 void set_vcount __ARGS((long count, long count1, int set_prevcount)); |
1151 | 85 void set_vim_var_string __ARGS((int idx, char_u *val, int len)); |
1733 | 86 void set_vim_var_list __ARGS((int idx, list_T *val)); |
1151 | 87 void set_reg_var __ARGS((int c)); |
88 char_u *v_exception __ARGS((char_u *oldval)); | |
89 char_u *v_throwpoint __ARGS((char_u *oldval)); | |
90 char_u *set_cmdarg __ARGS((exarg_T *eap, char_u *oldarg)); | |
91 void free_tv __ARGS((typval_T *varp)); | |
92 void clear_tv __ARGS((typval_T *varp)); | |
93 long get_tv_number_chk __ARGS((typval_T *varp, int *denote)); | |
94 char_u *get_tv_string_chk __ARGS((typval_T *varp)); | |
95 char_u *get_var_value __ARGS((char_u *name)); | |
96 void new_script_vars __ARGS((scid_T id)); | |
3687 | 97 void init_var_dict __ARGS((dict_T *dict, dictitem_T *dict_var, int scope)); |
4287 | 98 void unref_var_dict __ARGS((dict_T *dict)); |
1151 | 99 void vars_clear __ARGS((hashtab_T *ht)); |
2050
afcf9db31561
updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents:
1969
diff
changeset
|
100 void copy_tv __ARGS((typval_T *from, typval_T *to)); |
1151 | 101 void ex_echo __ARGS((exarg_T *eap)); |
102 void ex_echohl __ARGS((exarg_T *eap)); | |
103 void ex_execute __ARGS((exarg_T *eap)); | |
104 void ex_function __ARGS((exarg_T *eap)); | |
105 void free_all_functions __ARGS((void)); | |
106 void func_dump_profile __ARGS((FILE *fd)); | |
107 char_u *get_user_func_name __ARGS((expand_T *xp, int idx)); | |
108 void ex_delfunction __ARGS((exarg_T *eap)); | |
3618 | 109 void func_unref __ARGS((char_u *name)); |
110 void func_ref __ARGS((char_u *name)); | |
1151 | 111 void ex_return __ARGS((exarg_T *eap)); |
112 int do_return __ARGS((exarg_T *eap, int reanimate, int is_cmd, void *rettv)); | |
113 void discard_pending_return __ARGS((void *rettv)); | |
114 char_u *get_return_cmd __ARGS((void *rettv)); | |
115 char_u *get_func_line __ARGS((int c, void *cookie, int indent)); | |
116 void func_line_start __ARGS((void *cookie)); | |
117 void func_line_exec __ARGS((void *cookie)); | |
118 void func_line_end __ARGS((void *cookie)); | |
119 int func_has_ended __ARGS((void *cookie)); | |
120 int func_has_abort __ARGS((void *cookie)); | |
121 int read_viminfo_varlist __ARGS((vir_T *virp, int writing)); | |
122 void write_viminfo_varlist __ARGS((FILE *fp)); | |
123 int store_session_globals __ARGS((FILE *fd)); | |
124 void last_set_msg __ARGS((scid_T scriptID)); | |
1733 | 125 void ex_oldfiles __ARGS((exarg_T *eap)); |
1151 | 126 int modify_fname __ARGS((char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen)); |
127 char_u *do_string_sub __ARGS((char_u *str, char_u *pat, char_u *sub, char_u *flags)); | |
7 | 128 /* vim: set ft=c : */ |