Mercurial > vim
comparison src/proto/eval.pro @ 7668:21b0a39d13ed v7.4.1133
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 19 13:22:12 2016 +0100
patch 7.4.1133
Problem: Generated function prototypes still have __ARGS().
Solution: Generate function prototypes without __ARGS().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Jan 2016 13:30:06 +0100 |
parents | 4db70c94226b |
children | bce3b5ddb393 |
comparison
equal
deleted
inserted
replaced
7667:201b9c7e3df7 | 7668:21b0a39d13ed |
---|---|
1 /* eval.c */ | 1 /* eval.c */ |
2 void eval_init __ARGS((void)); | 2 void eval_init(void); |
3 void eval_clear __ARGS((void)); | 3 void eval_clear(void); |
4 char_u *func_name __ARGS((void *cookie)); | 4 char_u *func_name(void *cookie); |
5 linenr_T *func_breakpoint __ARGS((void *cookie)); | 5 linenr_T *func_breakpoint(void *cookie); |
6 int *func_dbg_tick __ARGS((void *cookie)); | 6 int *func_dbg_tick(void *cookie); |
7 int func_level __ARGS((void *cookie)); | 7 int func_level(void *cookie); |
8 int current_func_returned __ARGS((void)); | 8 int current_func_returned(void); |
9 void set_internal_string_var __ARGS((char_u *name, char_u *value)); | 9 void set_internal_string_var(char_u *name, char_u *value); |
10 int var_redir_start __ARGS((char_u *name, int append)); | 10 int var_redir_start(char_u *name, int append); |
11 void var_redir_str __ARGS((char_u *value, int value_len)); | 11 void var_redir_str(char_u *value, int value_len); |
12 void var_redir_stop __ARGS((void)); | 12 void var_redir_stop(void); |
13 int eval_charconvert __ARGS((char_u *enc_from, char_u *enc_to, char_u *fname_from, char_u *fname_to)); | 13 int eval_charconvert(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)); | 14 int eval_printexpr(char_u *fname, char_u *args); |
15 void eval_diff __ARGS((char_u *origfile, char_u *newfile, char_u *outfile)); | 15 void eval_diff(char_u *origfile, char_u *newfile, char_u *outfile); |
16 void eval_patch __ARGS((char_u *origfile, char_u *difffile, char_u *outfile)); | 16 void eval_patch(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)); | 17 int eval_to_bool(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)); | 18 char_u *eval_to_string_skip(char_u *arg, char_u **nextcmd, int skip); |
19 int skip_expr __ARGS((char_u **pp)); | 19 int skip_expr(char_u **pp); |
20 char_u *eval_to_string __ARGS((char_u *arg, char_u **nextcmd, int convert)); | 20 char_u *eval_to_string(char_u *arg, char_u **nextcmd, int convert); |
21 char_u *eval_to_string_safe __ARGS((char_u *arg, char_u **nextcmd, int use_sandbox)); | 21 char_u *eval_to_string_safe(char_u *arg, char_u **nextcmd, int use_sandbox); |
22 int eval_to_number __ARGS((char_u *expr)); | 22 int eval_to_number(char_u *expr); |
23 list_T *eval_spell_expr __ARGS((char_u *badword, char_u *expr)); | 23 list_T *eval_spell_expr(char_u *badword, char_u *expr); |
24 int get_spellword __ARGS((list_T *list, char_u **pp)); | 24 int get_spellword(list_T *list, char_u **pp); |
25 typval_T *eval_expr __ARGS((char_u *arg, char_u **nextcmd)); | 25 typval_T *eval_expr(char_u *arg, char_u **nextcmd); |
26 int call_vim_function __ARGS((char_u *func, int argc, char_u **argv, int safe, int str_arg_only, typval_T *rettv)); | 26 int call_vim_function(char_u *func, int argc, char_u **argv, int safe, int str_arg_only, typval_T *rettv); |
27 long call_func_retnr __ARGS((char_u *func, int argc, char_u **argv, int safe)); | 27 long call_func_retnr(char_u *func, int argc, char_u **argv, int safe); |
28 void *call_func_retstr __ARGS((char_u *func, int argc, char_u **argv, int safe)); | 28 void *call_func_retstr(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)); | 29 void *call_func_retlist(char_u *func, int argc, char_u **argv, int safe); |
30 void *save_funccal __ARGS((void)); | 30 void *save_funccal(void); |
31 void restore_funccal __ARGS((void *vfc)); | 31 void restore_funccal(void *vfc); |
32 void prof_child_enter __ARGS((proftime_T *tm)); | 32 void prof_child_enter(proftime_T *tm); |
33 void prof_child_exit __ARGS((proftime_T *tm)); | 33 void prof_child_exit(proftime_T *tm); |
34 int eval_foldexpr __ARGS((char_u *arg, int *cp)); | 34 int eval_foldexpr(char_u *arg, int *cp); |
35 void ex_let __ARGS((exarg_T *eap)); | 35 void ex_let(exarg_T *eap); |
36 void list_add_watch __ARGS((list_T *l, listwatch_T *lw)); | 36 void list_add_watch(list_T *l, listwatch_T *lw); |
37 void list_rem_watch __ARGS((list_T *l, listwatch_T *lwrem)); | 37 void list_rem_watch(list_T *l, listwatch_T *lwrem); |
38 void *eval_for_line __ARGS((char_u *arg, int *errp, char_u **nextcmdp, int skip)); | 38 void *eval_for_line(char_u *arg, int *errp, char_u **nextcmdp, int skip); |
39 int next_for_item __ARGS((void *fi_void, char_u *arg)); | 39 int next_for_item(void *fi_void, char_u *arg); |
40 void free_for_info __ARGS((void *fi_void)); | 40 void free_for_info(void *fi_void); |
41 void set_context_for_expression __ARGS((expand_T *xp, char_u *arg, cmdidx_T cmdidx)); | 41 void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx); |
42 void ex_call __ARGS((exarg_T *eap)); | 42 void ex_call(exarg_T *eap); |
43 void ex_unlet __ARGS((exarg_T *eap)); | 43 void ex_unlet(exarg_T *eap); |
44 void ex_lockvar __ARGS((exarg_T *eap)); | 44 void ex_lockvar(exarg_T *eap); |
45 int do_unlet __ARGS((char_u *name, int forceit)); | 45 int do_unlet(char_u *name, int forceit); |
46 void del_menutrans_vars __ARGS((void)); | 46 void del_menutrans_vars(void); |
47 char_u *get_user_var_name __ARGS((expand_T *xp, int idx)); | 47 char_u *get_user_var_name(expand_T *xp, int idx); |
48 list_T *list_alloc __ARGS((void)); | 48 list_T *list_alloc(void); |
49 void list_unref __ARGS((list_T *l)); | 49 void list_unref(list_T *l); |
50 void list_free __ARGS((list_T *l, int recurse)); | 50 void list_free(list_T *l, int recurse); |
51 listitem_T *listitem_alloc __ARGS((void)); | 51 listitem_T *listitem_alloc(void); |
52 void listitem_free __ARGS((listitem_T *item)); | 52 void listitem_free(listitem_T *item); |
53 void listitem_remove __ARGS((list_T *l, listitem_T *item)); | 53 void listitem_remove(list_T *l, listitem_T *item); |
54 dictitem_T *dict_lookup __ARGS((hashitem_T *hi)); | 54 dictitem_T *dict_lookup(hashitem_T *hi); |
55 listitem_T *list_find __ARGS((list_T *l, long n)); | 55 listitem_T *list_find(list_T *l, long n); |
56 char_u *list_find_str __ARGS((list_T *l, long idx)); | 56 char_u *list_find_str(list_T *l, long idx); |
57 void list_append __ARGS((list_T *l, listitem_T *item)); | 57 void list_append(list_T *l, listitem_T *item); |
58 int list_append_tv __ARGS((list_T *l, typval_T *tv)); | 58 int list_append_tv(list_T *l, typval_T *tv); |
59 int list_append_dict __ARGS((list_T *list, dict_T *dict)); | 59 int list_append_dict(list_T *list, dict_T *dict); |
60 int list_append_string __ARGS((list_T *l, char_u *str, int len)); | 60 int list_append_string(list_T *l, char_u *str, int len); |
61 int list_insert_tv __ARGS((list_T *l, typval_T *tv, listitem_T *item)); | 61 int list_insert_tv(list_T *l, typval_T *tv, listitem_T *item); |
62 void list_insert __ARGS((list_T *l, listitem_T *ni, listitem_T *item)); | 62 void list_insert(list_T *l, listitem_T *ni, listitem_T *item); |
63 void vimlist_remove __ARGS((list_T *l, listitem_T *item, listitem_T *item2)); | 63 void vimlist_remove(list_T *l, listitem_T *item, listitem_T *item2); |
64 int garbage_collect __ARGS((void)); | 64 int garbage_collect(void); |
65 int set_ref_in_ht __ARGS((hashtab_T *ht, int copyID, list_stack_T **list_stack)); | 65 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack); |
66 int set_ref_in_list __ARGS((list_T *l, int copyID, ht_stack_T **ht_stack)); | 66 int set_ref_in_list(list_T *l, int copyID, ht_stack_T **ht_stack); |
67 int set_ref_in_item __ARGS((typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack)); | 67 int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack); |
68 dict_T *dict_alloc __ARGS((void)); | 68 dict_T *dict_alloc(void); |
69 void dict_unref __ARGS((dict_T *d)); | 69 void dict_unref(dict_T *d); |
70 void dict_free __ARGS((dict_T *d, int recurse)); | 70 void dict_free(dict_T *d, int recurse); |
71 dictitem_T *dictitem_alloc __ARGS((char_u *key)); | 71 dictitem_T *dictitem_alloc(char_u *key); |
72 void dictitem_free __ARGS((dictitem_T *item)); | 72 void dictitem_free(dictitem_T *item); |
73 int dict_add __ARGS((dict_T *d, dictitem_T *item)); | 73 int dict_add(dict_T *d, dictitem_T *item); |
74 int dict_add_nr_str __ARGS((dict_T *d, char *key, long nr, char_u *str)); | 74 int dict_add_nr_str(dict_T *d, char *key, long nr, char_u *str); |
75 int dict_add_list __ARGS((dict_T *d, char *key, list_T *list)); | 75 int dict_add_list(dict_T *d, char *key, list_T *list); |
76 dictitem_T *dict_find __ARGS((dict_T *d, char_u *key, int len)); | 76 dictitem_T *dict_find(dict_T *d, char_u *key, int len); |
77 char_u *get_dict_string __ARGS((dict_T *d, char_u *key, int save)); | 77 char_u *get_dict_string(dict_T *d, char_u *key, int save); |
78 long get_dict_number __ARGS((dict_T *d, char_u *key)); | 78 long get_dict_number(dict_T *d, char_u *key); |
79 char_u *get_function_name __ARGS((expand_T *xp, int idx)); | 79 char_u *get_function_name(expand_T *xp, int idx); |
80 char_u *get_expr_name __ARGS((expand_T *xp, int idx)); | 80 char_u *get_expr_name(expand_T *xp, int idx); |
81 int func_call __ARGS((char_u *name, typval_T *args, dict_T *selfdict, typval_T *rettv)); | 81 int func_call(char_u *name, typval_T *args, dict_T *selfdict, typval_T *rettv); |
82 void dict_extend __ARGS((dict_T *d1, dict_T *d2, char_u *action)); | 82 void dict_extend(dict_T *d1, dict_T *d2, char_u *action); |
83 void mzscheme_call_vim __ARGS((char_u *name, typval_T *args, typval_T *rettv)); | 83 void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); |
84 float_T vim_round __ARGS((float_T f)); | 84 float_T vim_round(float_T f); |
85 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)); | 85 long do_searchpair(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); |
86 void set_vim_var_nr __ARGS((int idx, long val)); | 86 void set_vim_var_nr(int idx, long val); |
87 long get_vim_var_nr __ARGS((int idx)); | 87 long get_vim_var_nr(int idx); |
88 char_u *get_vim_var_str __ARGS((int idx)); | 88 char_u *get_vim_var_str(int idx); |
89 list_T *get_vim_var_list __ARGS((int idx)); | 89 list_T *get_vim_var_list(int idx); |
90 void set_vim_var_char __ARGS((int c)); | 90 void set_vim_var_char(int c); |
91 void set_vcount __ARGS((long count, long count1, int set_prevcount)); | 91 void set_vcount(long count, long count1, int set_prevcount); |
92 void set_vim_var_string __ARGS((int idx, char_u *val, int len)); | 92 void set_vim_var_string(int idx, char_u *val, int len); |
93 void set_vim_var_list __ARGS((int idx, list_T *val)); | 93 void set_vim_var_list(int idx, list_T *val); |
94 void set_vim_var_dict __ARGS((int idx, dict_T *val)); | 94 void set_vim_var_dict(int idx, dict_T *val); |
95 void set_reg_var __ARGS((int c)); | 95 void set_reg_var(int c); |
96 char_u *v_exception __ARGS((char_u *oldval)); | 96 char_u *v_exception(char_u *oldval); |
97 char_u *v_throwpoint __ARGS((char_u *oldval)); | 97 char_u *v_throwpoint(char_u *oldval); |
98 char_u *set_cmdarg __ARGS((exarg_T *eap, char_u *oldarg)); | 98 char_u *set_cmdarg(exarg_T *eap, char_u *oldarg); |
99 void free_tv __ARGS((typval_T *varp)); | 99 void free_tv(typval_T *varp); |
100 void clear_tv __ARGS((typval_T *varp)); | 100 void clear_tv(typval_T *varp); |
101 long get_tv_number_chk __ARGS((typval_T *varp, int *denote)); | 101 long get_tv_number_chk(typval_T *varp, int *denote); |
102 char_u *get_tv_string_chk __ARGS((typval_T *varp)); | 102 char_u *get_tv_string_chk(typval_T *varp); |
103 char_u *get_var_value __ARGS((char_u *name)); | 103 char_u *get_var_value(char_u *name); |
104 void new_script_vars __ARGS((scid_T id)); | 104 void new_script_vars(scid_T id); |
105 void init_var_dict __ARGS((dict_T *dict, dictitem_T *dict_var, int scope)); | 105 void init_var_dict(dict_T *dict, dictitem_T *dict_var, int scope); |
106 void unref_var_dict __ARGS((dict_T *dict)); | 106 void unref_var_dict(dict_T *dict); |
107 void vars_clear __ARGS((hashtab_T *ht)); | 107 void vars_clear(hashtab_T *ht); |
108 void copy_tv __ARGS((typval_T *from, typval_T *to)); | 108 void copy_tv(typval_T *from, typval_T *to); |
109 void ex_echo __ARGS((exarg_T *eap)); | 109 void ex_echo(exarg_T *eap); |
110 void ex_echohl __ARGS((exarg_T *eap)); | 110 void ex_echohl(exarg_T *eap); |
111 void ex_execute __ARGS((exarg_T *eap)); | 111 void ex_execute(exarg_T *eap); |
112 void ex_function __ARGS((exarg_T *eap)); | 112 void ex_function(exarg_T *eap); |
113 void free_all_functions __ARGS((void)); | 113 void free_all_functions(void); |
114 int translated_function_exists __ARGS((char_u *name)); | 114 int translated_function_exists(char_u *name); |
115 char_u *get_expanded_name __ARGS((char_u *name, int check)); | 115 char_u *get_expanded_name(char_u *name, int check); |
116 void func_dump_profile __ARGS((FILE *fd)); | 116 void func_dump_profile(FILE *fd); |
117 char_u *get_user_func_name __ARGS((expand_T *xp, int idx)); | 117 char_u *get_user_func_name(expand_T *xp, int idx); |
118 void ex_delfunction __ARGS((exarg_T *eap)); | 118 void ex_delfunction(exarg_T *eap); |
119 void func_unref __ARGS((char_u *name)); | 119 void func_unref(char_u *name); |
120 void func_ref __ARGS((char_u *name)); | 120 void func_ref(char_u *name); |
121 void ex_return __ARGS((exarg_T *eap)); | 121 void ex_return(exarg_T *eap); |
122 int do_return __ARGS((exarg_T *eap, int reanimate, int is_cmd, void *rettv)); | 122 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); |
123 void discard_pending_return __ARGS((void *rettv)); | 123 void discard_pending_return(void *rettv); |
124 char_u *get_return_cmd __ARGS((void *rettv)); | 124 char_u *get_return_cmd(void *rettv); |
125 char_u *get_func_line __ARGS((int c, void *cookie, int indent)); | 125 char_u *get_func_line(int c, void *cookie, int indent); |
126 void func_line_start __ARGS((void *cookie)); | 126 void func_line_start(void *cookie); |
127 void func_line_exec __ARGS((void *cookie)); | 127 void func_line_exec(void *cookie); |
128 void func_line_end __ARGS((void *cookie)); | 128 void func_line_end(void *cookie); |
129 int func_has_ended __ARGS((void *cookie)); | 129 int func_has_ended(void *cookie); |
130 int func_has_abort __ARGS((void *cookie)); | 130 int func_has_abort(void *cookie); |
131 int read_viminfo_varlist __ARGS((vir_T *virp, int writing)); | 131 int read_viminfo_varlist(vir_T *virp, int writing); |
132 void write_viminfo_varlist __ARGS((FILE *fp)); | 132 void write_viminfo_varlist(FILE *fp); |
133 int store_session_globals __ARGS((FILE *fd)); | 133 int store_session_globals(FILE *fd); |
134 void last_set_msg __ARGS((scid_T scriptID)); | 134 void last_set_msg(scid_T scriptID); |
135 void ex_oldfiles __ARGS((exarg_T *eap)); | 135 void ex_oldfiles(exarg_T *eap); |
136 void reset_v_option_vars __ARGS((void)); | 136 void reset_v_option_vars(void); |
137 int modify_fname __ARGS((char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen)); | 137 int modify_fname(char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen); |
138 char_u *do_string_sub __ARGS((char_u *str, char_u *pat, char_u *sub, char_u *flags)); | 138 char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, char_u *flags); |
139 /* vim: set ft=c : */ | 139 /* vim: set ft=c : */ |