From ef26954a35207c3f17d6ed35d9a40c918d974892 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 19 Jan 2016 13:22:12 +0100 Subject: patch 7.4.1133 Problem: Generated function prototypes still have __ARGS(). Solution: Generate function prototypes without __ARGS(). --- src/Makefile | 4 +- src/if_ruby.c | 2 +- src/os_win32.c | 1 + src/proto/blowfish.pro | 8 +- src/proto/buffer.pro | 138 +++++++++++------------ src/proto/charset.pro | 120 ++++++++++---------- src/proto/crypt.pro | 48 ++++---- src/proto/crypt_zip.pro | 6 +- src/proto/diff.pro | 50 ++++----- src/proto/digraph.pro | 14 +-- src/proto/edit.pro | 82 +++++++------- src/proto/eval.pro | 274 +++++++++++++++++++++++----------------------- src/proto/ex_cmds.pro | 128 +++++++++++----------- src/proto/ex_cmds2.pro | 176 ++++++++++++++--------------- src/proto/ex_docmd.pro | 116 ++++++++++---------- src/proto/ex_eval.pro | 64 +++++------ src/proto/ex_getln.pro | 112 +++++++++---------- src/proto/fileio.pro | 130 +++++++++++----------- src/proto/fold.pro | 78 ++++++------- src/proto/getchar.pro | 138 +++++++++++------------ src/proto/gui.pro | 128 +++++++++++----------- src/proto/gui_athena.pro | 58 +++++----- src/proto/gui_beval.pro | 18 +-- src/proto/gui_gtk.pro | 40 +++---- src/proto/gui_gtk_x11.pro | 146 ++++++++++++------------ src/proto/gui_motif.pro | 88 +++++++-------- src/proto/gui_photon.pro | 130 +++++++++++----------- src/proto/gui_w16.pro | 156 +++++++++++++------------- src/proto/gui_w32.pro | 196 ++++++++++++++++----------------- src/proto/gui_x11.pro | 136 +++++++++++------------ src/proto/gui_xmdlg.pro | 2 +- src/proto/hangulin.pro | 18 +-- src/proto/hardcopy.pro | 36 +++--- src/proto/hashtab.pro | 24 ++-- src/proto/if_cscope.pro | 20 ++-- src/proto/if_perl.pro | 16 +-- src/proto/if_perlsfio.pro | 2 +- src/proto/if_python.pro | 22 ++-- src/proto/if_python3.pro | 22 ++-- src/proto/if_ruby.pro | 16 +-- src/proto/if_tcl.pro | 16 +-- src/proto/if_xcmdsrv.pro | 22 ++-- src/proto/main.pro | 48 ++++---- src/proto/mark.pro | 58 +++++----- src/proto/mbyte.pro | 188 +++++++++++++++---------------- src/proto/memfile.pro | 32 +++--- src/proto/memline.pro | 70 ++++++------ src/proto/menu.pro | 40 +++---- src/proto/message.pro | 144 ++++++++++++------------ src/proto/misc1.pro | 212 +++++++++++++++++------------------ src/proto/misc2.pro | 222 ++++++++++++++++++------------------- src/proto/move.pro | 78 ++++++------- src/proto/netbeans.pro | 56 +++++----- src/proto/normal.pro | 48 ++++---- src/proto/ops.pro | 120 ++++++++++---------- src/proto/option.pro | 128 +++++++++++----------- src/proto/os_amiga.pro | 88 +++++++-------- src/proto/os_beos.pro | 4 +- src/proto/os_msdos.pro | 92 ++++++++-------- src/proto/os_mswin.pro | 102 ++++++++--------- src/proto/os_unix.pro | 148 ++++++++++++------------- src/proto/os_vms.pro | 28 ++--- src/proto/os_win16.pro | 20 ++-- src/proto/os_win32.pro | 120 ++++++++++---------- src/proto/popupmnu.pro | 12 +- src/proto/quickfix.pro | 62 +++++------ src/proto/regexp.pro | 36 +++--- src/proto/screen.pro | 108 +++++++++--------- src/proto/search.pro | 90 +++++++-------- src/proto/sha256.pro | 14 +-- src/proto/spell.pro | 48 ++++---- src/proto/syntax.pro | 108 +++++++++--------- src/proto/tag.pro | 20 ++-- src/proto/term.pro | 122 ++++++++++----------- src/proto/termlib.pro | 12 +- src/proto/ui.pro | 130 +++++++++++----------- src/proto/undo.pro | 56 +++++----- src/proto/version.pro | 16 +-- src/proto/winclip.pro | 26 ++--- src/proto/window.pro | 168 ++++++++++++++-------------- src/proto/workshop.pro | 94 ++++++++-------- src/version.c | 2 + 82 files changed, 3087 insertions(+), 3084 deletions(-) diff --git a/src/Makefile b/src/Makefile index f930834faf..4aa5a48b2b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1361,10 +1361,10 @@ CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) \ NO_ATTR= # # Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check): -# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR) +# PROTO_FLAGS = -f4 -d -E"$(CPP)" $(NO_ATTR) # # Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check): -PROTO_FLAGS = -m -M__ARGS -d -E"$(CPP)" $(NO_ATTR) +PROTO_FLAGS = -d -E"$(CPP)" $(NO_ATTR) ################################################ diff --git a/src/if_ruby.c b/src/if_ruby.c index 8b1590eb94..96d9453dbc 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -189,7 +189,7 @@ static void ruby_vim_init(void); #endif #if defined(DYNAMIC_RUBY) || defined(PROTO) -# ifdef PROTO +# if defined(PROTO) && !defined(HINSTANCE) # define HINSTANCE int /* for generating prototypes */ # endif diff --git a/src/os_win32.c b/src/os_win32.c index b4f5fa4666..da05e6ea3a 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -101,6 +101,7 @@ typedef int CONSOLE_CURSOR_INFO; typedef int COORD; typedef int DWORD; typedef int HANDLE; +typedef int LPHANDLE; typedef int HDC; typedef int HFONT; typedef int HICON; diff --git a/src/proto/blowfish.pro b/src/proto/blowfish.pro index 66d029cd89..d959846105 100644 --- a/src/proto/blowfish.pro +++ b/src/proto/blowfish.pro @@ -1,6 +1,6 @@ /* blowfish.c */ -void crypt_blowfish_encode __ARGS((cryptstate_T *state, char_u *from, size_t len, char_u *to)); -void crypt_blowfish_decode __ARGS((cryptstate_T *state, char_u *from, size_t len, char_u *to)); -void crypt_blowfish_init __ARGS((cryptstate_T *state, char_u *key, char_u *salt, int salt_len, char_u *seed, int seed_len)); -int blowfish_self_test __ARGS((void)); +void crypt_blowfish_encode(cryptstate_T *state, char_u *from, size_t len, char_u *to); +void crypt_blowfish_decode(cryptstate_T *state, char_u *from, size_t len, char_u *to); +void crypt_blowfish_init(cryptstate_T *state, char_u *key, char_u *salt, int salt_len, char_u *seed, int seed_len); +int blowfish_self_test(void); /* vim: set ft=c : */ diff --git a/src/proto/buffer.pro b/src/proto/buffer.pro index 9e97f67e44..71217287a6 100644 --- a/src/proto/buffer.pro +++ b/src/proto/buffer.pro @@ -1,71 +1,71 @@ /* buffer.c */ -int open_buffer __ARGS((int read_stdin, exarg_T *eap, int flags)); -int buf_valid __ARGS((buf_T *buf)); -void close_buffer __ARGS((win_T *win, buf_T *buf, int action, int abort_if_last)); -void buf_clear_file __ARGS((buf_T *buf)); -void buf_freeall __ARGS((buf_T *buf, int flags)); -void goto_buffer __ARGS((exarg_T *eap, int start, int dir, int count)); -void handle_swap_exists __ARGS((buf_T *old_curbuf)); -char_u *do_bufdel __ARGS((int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit)); -int do_buffer __ARGS((int action, int start, int dir, int count, int forceit)); -void set_curbuf __ARGS((buf_T *buf, int action)); -void enter_buffer __ARGS((buf_T *buf)); -void do_autochdir __ARGS((void)); -buf_T *buflist_new __ARGS((char_u *ffname, char_u *sfname, linenr_T lnum, int flags)); -void free_buf_options __ARGS((buf_T *buf, int free_p_ff)); -int buflist_getfile __ARGS((int n, linenr_T lnum, int options, int forceit)); -void buflist_getfpos __ARGS((void)); -buf_T *buflist_findname_exp __ARGS((char_u *fname)); -buf_T *buflist_findname __ARGS((char_u *ffname)); -int buflist_findpat __ARGS((char_u *pattern, char_u *pattern_end, int unlisted, int diffmode, int curtab_only)); -int ExpandBufnames __ARGS((char_u *pat, int *num_file, char_u ***file, int options)); -buf_T *buflist_findnr __ARGS((int nr)); -char_u *buflist_nr2name __ARGS((int n, int fullname, int helptail)); -void get_winopts __ARGS((buf_T *buf)); -pos_T *buflist_findfpos __ARGS((buf_T *buf)); -linenr_T buflist_findlnum __ARGS((buf_T *buf)); -void buflist_list __ARGS((exarg_T *eap)); -int buflist_name_nr __ARGS((int fnum, char_u **fname, linenr_T *lnum)); -int setfname __ARGS((buf_T *buf, char_u *ffname, char_u *sfname, int message)); -void buf_set_name __ARGS((int fnum, char_u *name)); -void buf_name_changed __ARGS((buf_T *buf)); -buf_T *setaltfname __ARGS((char_u *ffname, char_u *sfname, linenr_T lnum)); -char_u *getaltfname __ARGS((int errmsg)); -int buflist_add __ARGS((char_u *fname, int flags)); -void buflist_slash_adjust __ARGS((void)); -void buflist_altfpos __ARGS((win_T *win)); -int otherfile __ARGS((char_u *ffname)); -void buf_setino __ARGS((buf_T *buf)); -void fileinfo __ARGS((int fullname, int shorthelp, int dont_truncate)); -void col_print __ARGS((char_u *buf, size_t buflen, int col, int vcol)); -void maketitle __ARGS((void)); -void resettitle __ARGS((void)); -void free_titles __ARGS((void)); -int build_stl_str_hl __ARGS((win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use_sandbox, int fillchar, int maxwidth, struct stl_hlrec *hltab, struct stl_hlrec *tabtab)); -void get_rel_pos __ARGS((win_T *wp, char_u *buf, int buflen)); -char_u *fix_fname __ARGS((char_u *fname)); -void fname_expand __ARGS((buf_T *buf, char_u **ffname, char_u **sfname)); -char_u *alist_name __ARGS((aentry_T *aep)); -void do_arg_all __ARGS((int count, int forceit, int keep_tabs)); -void ex_buffer_all __ARGS((exarg_T *eap)); -void do_modelines __ARGS((int flags)); -int read_viminfo_bufferlist __ARGS((vir_T *virp, int writing)); -void write_viminfo_bufferlist __ARGS((FILE *fp)); -char_u *buf_spname __ARGS((buf_T *buf)); -int find_win_for_buf __ARGS((buf_T *buf, win_T **wp, tabpage_T **tp)); -void buf_addsign __ARGS((buf_T *buf, int id, linenr_T lnum, int typenr)); -linenr_T buf_change_sign_type __ARGS((buf_T *buf, int markId, int typenr)); -int buf_getsigntype __ARGS((buf_T *buf, linenr_T lnum, int type)); -linenr_T buf_delsign __ARGS((buf_T *buf, int id)); -int buf_findsign __ARGS((buf_T *buf, int id)); -int buf_findsign_id __ARGS((buf_T *buf, linenr_T lnum)); -int buf_findsigntype_id __ARGS((buf_T *buf, linenr_T lnum, int typenr)); -int buf_signcount __ARGS((buf_T *buf, linenr_T lnum)); -void buf_delete_signs __ARGS((buf_T *buf)); -void buf_delete_all_signs __ARGS((void)); -void sign_list_placed __ARGS((buf_T *rbuf)); -void sign_mark_adjust __ARGS((linenr_T line1, linenr_T line2, long amount, long amount_after)); -void set_buflisted __ARGS((int on)); -int buf_contents_changed __ARGS((buf_T *buf)); -void wipe_buffer __ARGS((buf_T *buf, int aucmd)); +int open_buffer(int read_stdin, exarg_T *eap, int flags); +int buf_valid(buf_T *buf); +void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last); +void buf_clear_file(buf_T *buf); +void buf_freeall(buf_T *buf, int flags); +void goto_buffer(exarg_T *eap, int start, int dir, int count); +void handle_swap_exists(buf_T *old_curbuf); +char_u *do_bufdel(int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit); +int do_buffer(int action, int start, int dir, int count, int forceit); +void set_curbuf(buf_T *buf, int action); +void enter_buffer(buf_T *buf); +void do_autochdir(void); +buf_T *buflist_new(char_u *ffname, char_u *sfname, linenr_T lnum, int flags); +void free_buf_options(buf_T *buf, int free_p_ff); +int buflist_getfile(int n, linenr_T lnum, int options, int forceit); +void buflist_getfpos(void); +buf_T *buflist_findname_exp(char_u *fname); +buf_T *buflist_findname(char_u *ffname); +int buflist_findpat(char_u *pattern, char_u *pattern_end, int unlisted, int diffmode, int curtab_only); +int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options); +buf_T *buflist_findnr(int nr); +char_u *buflist_nr2name(int n, int fullname, int helptail); +void get_winopts(buf_T *buf); +pos_T *buflist_findfpos(buf_T *buf); +linenr_T buflist_findlnum(buf_T *buf); +void buflist_list(exarg_T *eap); +int buflist_name_nr(int fnum, char_u **fname, linenr_T *lnum); +int setfname(buf_T *buf, char_u *ffname, char_u *sfname, int message); +void buf_set_name(int fnum, char_u *name); +void buf_name_changed(buf_T *buf); +buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum); +char_u *getaltfname(int errmsg); +int buflist_add(char_u *fname, int flags); +void buflist_slash_adjust(void); +void buflist_altfpos(win_T *win); +int otherfile(char_u *ffname); +void buf_setino(buf_T *buf); +void fileinfo(int fullname, int shorthelp, int dont_truncate); +void col_print(char_u *buf, size_t buflen, int col, int vcol); +void maketitle(void); +void resettitle(void); +void free_titles(void); +int build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use_sandbox, int fillchar, int maxwidth, struct stl_hlrec *hltab, struct stl_hlrec *tabtab); +void get_rel_pos(win_T *wp, char_u *buf, int buflen); +char_u *fix_fname(char_u *fname); +void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname); +char_u *alist_name(aentry_T *aep); +void do_arg_all(int count, int forceit, int keep_tabs); +void ex_buffer_all(exarg_T *eap); +void do_modelines(int flags); +int read_viminfo_bufferlist(vir_T *virp, int writing); +void write_viminfo_bufferlist(FILE *fp); +char_u *buf_spname(buf_T *buf); +int find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp); +void buf_addsign(buf_T *buf, int id, linenr_T lnum, int typenr); +linenr_T buf_change_sign_type(buf_T *buf, int markId, int typenr); +int buf_getsigntype(buf_T *buf, linenr_T lnum, int type); +linenr_T buf_delsign(buf_T *buf, int id); +int buf_findsign(buf_T *buf, int id); +int buf_findsign_id(buf_T *buf, linenr_T lnum); +int buf_findsigntype_id(buf_T *buf, linenr_T lnum, int typenr); +int buf_signcount(buf_T *buf, linenr_T lnum); +void buf_delete_signs(buf_T *buf); +void buf_delete_all_signs(void); +void sign_list_placed(buf_T *rbuf); +void sign_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); +void set_buflisted(int on); +int buf_contents_changed(buf_T *buf); +void wipe_buffer(buf_T *buf, int aucmd); /* vim: set ft=c : */ diff --git a/src/proto/charset.pro b/src/proto/charset.pro index 22e43cd7aa..7b4961d704 100644 --- a/src/proto/charset.pro +++ b/src/proto/charset.pro @@ -1,62 +1,62 @@ /* charset.c */ -int init_chartab __ARGS((void)); -int buf_init_chartab __ARGS((buf_T *buf, int global)); -void trans_characters __ARGS((char_u *buf, int bufsize)); -char_u *transstr __ARGS((char_u *s)); -char_u *str_foldcase __ARGS((char_u *str, int orglen, char_u *buf, int buflen)); -char_u *transchar __ARGS((int c)); -char_u *transchar_byte __ARGS((int c)); -void transchar_nonprint __ARGS((char_u *buf, int c)); -void transchar_hex __ARGS((char_u *buf, int c)); -int byte2cells __ARGS((int b)); -int char2cells __ARGS((int c)); -int ptr2cells __ARGS((char_u *p)); -int vim_strsize __ARGS((char_u *s)); -int vim_strnsize __ARGS((char_u *s, int len)); -int chartabsize __ARGS((char_u *p, colnr_T col)); -int linetabsize __ARGS((char_u *s)); -int linetabsize_col __ARGS((int startcol, char_u *s)); -int win_linetabsize __ARGS((win_T *wp, char_u *line, colnr_T len)); -int vim_isIDc __ARGS((int c)); -int vim_iswordc __ARGS((int c)); -int vim_iswordc_buf __ARGS((int c, buf_T *buf)); -int vim_iswordp __ARGS((char_u *p)); -int vim_iswordp_buf __ARGS((char_u *p, buf_T *buf)); -int vim_isfilec __ARGS((int c)); -int vim_isfilec_or_wc __ARGS((int c)); -int vim_isprintc __ARGS((int c)); -int vim_isprintc_strict __ARGS((int c)); -int lbr_chartabsize __ARGS((char_u *line, unsigned char *s, colnr_T col)); -int lbr_chartabsize_adv __ARGS((char_u *line, char_u **s, colnr_T col)); -int win_lbr_chartabsize __ARGS((win_T *wp, char_u *line, char_u *s, colnr_T col, int *headp)); -int in_win_border __ARGS((win_T *wp, colnr_T vcol)); -void getvcol __ARGS((win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, colnr_T *end)); -colnr_T getvcol_nolist __ARGS((pos_T *posp)); -void getvvcol __ARGS((win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, colnr_T *end)); -void getvcols __ARGS((win_T *wp, pos_T *pos1, pos_T *pos2, colnr_T *left, colnr_T *right)); -char_u *skipwhite __ARGS((char_u *q)); -char_u *skipdigits __ARGS((char_u *q)); -char_u *skipbin __ARGS((char_u *q)); -char_u *skiphex __ARGS((char_u *q)); -char_u *skiptobin __ARGS((char_u *q)); -char_u *skiptodigit __ARGS((char_u *q)); -char_u *skiptohex __ARGS((char_u *q)); -int vim_isdigit __ARGS((int c)); -int vim_isxdigit __ARGS((int c)); -int vim_isbdigit __ARGS((int c)); -int vim_islower __ARGS((int c)); -int vim_isupper __ARGS((int c)); -int vim_toupper __ARGS((int c)); -int vim_tolower __ARGS((int c)); -char_u *skiptowhite __ARGS((char_u *p)); -char_u *skiptowhite_esc __ARGS((char_u *p)); -long getdigits __ARGS((char_u **pp)); -int vim_isblankline __ARGS((char_u *lbuf)); -void vim_str2nr __ARGS((char_u *start, int *prep, int *len, int what, long *nptr, unsigned long *unptr, int maxlen)); -int hex2nr __ARGS((int c)); -int hexhex2nr __ARGS((char_u *p)); -int rem_backslash __ARGS((char_u *str)); -void backslash_halve __ARGS((char_u *p)); -char_u *backslash_halve_save __ARGS((char_u *p)); -void ebcdic2ascii __ARGS((char_u *buffer, int len)); +int init_chartab(void); +int buf_init_chartab(buf_T *buf, int global); +void trans_characters(char_u *buf, int bufsize); +char_u *transstr(char_u *s); +char_u *str_foldcase(char_u *str, int orglen, char_u *buf, int buflen); +char_u *transchar(int c); +char_u *transchar_byte(int c); +void transchar_nonprint(char_u *buf, int c); +void transchar_hex(char_u *buf, int c); +int byte2cells(int b); +int char2cells(int c); +int ptr2cells(char_u *p); +int vim_strsize(char_u *s); +int vim_strnsize(char_u *s, int len); +int chartabsize(char_u *p, colnr_T col); +int linetabsize(char_u *s); +int linetabsize_col(int startcol, char_u *s); +int win_linetabsize(win_T *wp, char_u *line, colnr_T len); +int vim_isIDc(int c); +int vim_iswordc(int c); +int vim_iswordc_buf(int c, buf_T *buf); +int vim_iswordp(char_u *p); +int vim_iswordp_buf(char_u *p, buf_T *buf); +int vim_isfilec(int c); +int vim_isfilec_or_wc(int c); +int vim_isprintc(int c); +int vim_isprintc_strict(int c); +int lbr_chartabsize(char_u *line, unsigned char *s, colnr_T col); +int lbr_chartabsize_adv(char_u *line, char_u **s, colnr_T col); +int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *headp); +int in_win_border(win_T *wp, colnr_T vcol); +void getvcol(win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, colnr_T *end); +colnr_T getvcol_nolist(pos_T *posp); +void getvvcol(win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, colnr_T *end); +void getvcols(win_T *wp, pos_T *pos1, pos_T *pos2, colnr_T *left, colnr_T *right); +char_u *skipwhite(char_u *q); +char_u *skipdigits(char_u *q); +char_u *skipbin(char_u *q); +char_u *skiphex(char_u *q); +char_u *skiptobin(char_u *q); +char_u *skiptodigit(char_u *q); +char_u *skiptohex(char_u *q); +int vim_isdigit(int c); +int vim_isxdigit(int c); +int vim_isbdigit(int c); +int vim_islower(int c); +int vim_isupper(int c); +int vim_toupper(int c); +int vim_tolower(int c); +char_u *skiptowhite(char_u *p); +char_u *skiptowhite_esc(char_u *p); +long getdigits(char_u **pp); +int vim_isblankline(char_u *lbuf); +void vim_str2nr(char_u *start, int *prep, int *len, int what, long *nptr, unsigned long *unptr, int maxlen); +int hex2nr(int c); +int hexhex2nr(char_u *p); +int rem_backslash(char_u *str); +void backslash_halve(char_u *p); +char_u *backslash_halve_save(char_u *p); +void ebcdic2ascii(char_u *buffer, int len); /* vim: set ft=c : */ diff --git a/src/proto/crypt.pro b/src/proto/crypt.pro index 7b29026a1d..c944b45cef 100644 --- a/src/proto/crypt.pro +++ b/src/proto/crypt.pro @@ -1,26 +1,26 @@ /* crypt.c */ -int crypt_method_nr_from_name __ARGS((char_u *name)); -int crypt_method_nr_from_magic __ARGS((char *ptr, int len)); -int crypt_works_inplace __ARGS((cryptstate_T *state)); -int crypt_get_method_nr __ARGS((buf_T *buf)); -int crypt_whole_undofile __ARGS((int method_nr)); -int crypt_get_header_len __ARGS((int method_nr)); -void crypt_set_cm_option __ARGS((buf_T *buf, int method_nr)); -int crypt_self_test __ARGS((void)); -cryptstate_T *crypt_create __ARGS((int method_nr, char_u *key, char_u *salt, int salt_len, char_u *seed, int seed_len)); -cryptstate_T *crypt_create_from_header __ARGS((int method_nr, char_u *key, char_u *header)); -cryptstate_T *crypt_create_from_file __ARGS((FILE *fp, char_u *key)); -cryptstate_T *crypt_create_for_writing __ARGS((int method_nr, char_u *key, char_u **header, int *header_len)); -void crypt_free_state __ARGS((cryptstate_T *state)); -long crypt_encode_alloc __ARGS((cryptstate_T *state, char_u *from, size_t len, char_u **newptr)); -long crypt_decode_alloc __ARGS((cryptstate_T *state, char_u *ptr, long len, char_u **newptr)); -void crypt_encode __ARGS((cryptstate_T *state, char_u *from, size_t len, char_u *to)); -void crypt_decode __ARGS((cryptstate_T *state, char_u *from, size_t len, char_u *to)); -void crypt_encode_inplace __ARGS((cryptstate_T *state, char_u *buf, size_t len)); -void crypt_decode_inplace __ARGS((cryptstate_T *state, char_u *buf, size_t len)); -void crypt_free_key __ARGS((char_u *key)); -void crypt_check_method __ARGS((int method)); -void crypt_check_current_method __ARGS((void)); -char_u *crypt_get_key __ARGS((int store, int twice)); -void crypt_append_msg __ARGS((buf_T *buf)); +int crypt_method_nr_from_name(char_u *name); +int crypt_method_nr_from_magic(char *ptr, int len); +int crypt_works_inplace(cryptstate_T *state); +int crypt_get_method_nr(buf_T *buf); +int crypt_whole_undofile(int method_nr); +int crypt_get_header_len(int method_nr); +void crypt_set_cm_option(buf_T *buf, int method_nr); +int crypt_self_test(void); +cryptstate_T *crypt_create(int method_nr, char_u *key, char_u *salt, int salt_len, char_u *seed, int seed_len); +cryptstate_T *crypt_create_from_header(int method_nr, char_u *key, char_u *header); +cryptstate_T *crypt_create_from_file(FILE *fp, char_u *key); +cryptstate_T *crypt_create_for_writing(int method_nr, char_u *key, char_u **header, int *header_len); +void crypt_free_state(cryptstate_T *state); +long crypt_encode_alloc(cryptstate_T *state, char_u *from, size_t len, char_u **newptr); +long crypt_decode_alloc(cryptstate_T *state, char_u *ptr, long len, char_u **newptr); +void crypt_encode(cryptstate_T *state, char_u *from, size_t len, char_u *to); +void crypt_decode(cryptstate_T *state, char_u *from, size_t len, char_u *to); +void crypt_encode_inplace(cryptstate_T *state, char_u *buf, size_t len); +void crypt_decode_inplace(cryptstate_T *state, char_u *buf, size_t len); +void crypt_free_key(char_u *key); +void crypt_check_method(int method); +void crypt_check_current_method(void); +char_u *crypt_get_key(int store, int twice); +void crypt_append_msg(buf_T *buf); /* vim: set ft=c : */ diff --git a/src/proto/crypt_zip.pro b/src/proto/crypt_zip.pro index 5f4e137713..74784e1a47 100644 --- a/src/proto/crypt_zip.pro +++ b/src/proto/crypt_zip.pro @@ -1,5 +1,5 @@ /* crypt_zip.c */ -void crypt_zip_init __ARGS((cryptstate_T *state, char_u *key, char_u *salt, int salt_len, char_u *seed, int seed_len)); -void crypt_zip_encode __ARGS((cryptstate_T *state, char_u *from, size_t len, char_u *to)); -void crypt_zip_decode __ARGS((cryptstate_T *state, char_u *from, size_t len, char_u *to)); +void crypt_zip_init(cryptstate_T *state, char_u *key, char_u *salt, int salt_len, char_u *seed, int seed_len); +void crypt_zip_encode(cryptstate_T *state, char_u *from, size_t len, char_u *to); +void crypt_zip_decode(cryptstate_T *state, char_u *from, size_t len, char_u *to); /* vim: set ft=c : */ diff --git a/src/proto/diff.pro b/src/proto/diff.pro index 3234fde1a6..c7a7ebe579 100644 --- a/src/proto/diff.pro +++ b/src/proto/diff.pro @@ -1,27 +1,27 @@ /* diff.c */ -void diff_buf_delete __ARGS((buf_T *buf)); -void diff_buf_adjust __ARGS((win_T *win)); -void diff_buf_add __ARGS((buf_T *buf)); -void diff_invalidate __ARGS((buf_T *buf)); -void diff_mark_adjust __ARGS((linenr_T line1, linenr_T line2, long amount, long amount_after)); -void ex_diffupdate __ARGS((exarg_T *eap)); -void ex_diffpatch __ARGS((exarg_T *eap)); -void ex_diffsplit __ARGS((exarg_T *eap)); -void ex_diffthis __ARGS((exarg_T *eap)); -void diff_win_options __ARGS((win_T *wp, int addbuf)); -void ex_diffoff __ARGS((exarg_T *eap)); -void diff_clear __ARGS((tabpage_T *tp)); -int diff_check __ARGS((win_T *wp, linenr_T lnum)); -int diff_check_fill __ARGS((win_T *wp, linenr_T lnum)); -void diff_set_topline __ARGS((win_T *fromwin, win_T *towin)); -int diffopt_changed __ARGS((void)); -int diffopt_horizontal __ARGS((void)); -int diff_find_change __ARGS((win_T *wp, linenr_T lnum, int *startp, int *endp)); -int diff_infold __ARGS((win_T *wp, linenr_T lnum)); -void nv_diffgetput __ARGS((int put, long count)); -void ex_diffgetput __ARGS((exarg_T *eap)); -int diff_mode_buf __ARGS((buf_T *buf)); -int diff_move_to __ARGS((int dir, long count)); -linenr_T diff_get_corresponding_line __ARGS((buf_T *buf1, linenr_T lnum1, buf_T *buf2, linenr_T lnum3)); -linenr_T diff_lnum_win __ARGS((linenr_T lnum, win_T *wp)); +void diff_buf_delete(buf_T *buf); +void diff_buf_adjust(win_T *win); +void diff_buf_add(buf_T *buf); +void diff_invalidate(buf_T *buf); +void diff_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); +void ex_diffupdate(exarg_T *eap); +void ex_diffpatch(exarg_T *eap); +void ex_diffsplit(exarg_T *eap); +void ex_diffthis(exarg_T *eap); +void diff_win_options(win_T *wp, int addbuf); +void ex_diffoff(exarg_T *eap); +void diff_clear(tabpage_T *tp); +int diff_check(win_T *wp, linenr_T lnum); +int diff_check_fill(win_T *wp, linenr_T lnum); +void diff_set_topline(win_T *fromwin, win_T *towin); +int diffopt_changed(void); +int diffopt_horizontal(void); +int diff_find_change(win_T *wp, linenr_T lnum, int *startp, int *endp); +int diff_infold(win_T *wp, linenr_T lnum); +void nv_diffgetput(int put, long count); +void ex_diffgetput(exarg_T *eap); +int diff_mode_buf(buf_T *buf); +int diff_move_to(int dir, long count); +linenr_T diff_get_corresponding_line(buf_T *buf1, linenr_T lnum1, buf_T *buf2, linenr_T lnum3); +linenr_T diff_lnum_win(linenr_T lnum, win_T *wp); /* vim: set ft=c : */ diff --git a/src/proto/digraph.pro b/src/proto/digraph.pro index 5573b8c36d..a8d2ae903c 100644 --- a/src/proto/digraph.pro +++ b/src/proto/digraph.pro @@ -1,9 +1,9 @@ /* digraph.c */ -int do_digraph __ARGS((int c)); -int get_digraph __ARGS((int cmdline)); -int getdigraph __ARGS((int char1, int char2, int meta_char)); -void putdigraph __ARGS((char_u *str)); -void listdigraphs __ARGS((void)); -char_u *keymap_init __ARGS((void)); -void ex_loadkeymap __ARGS((exarg_T *eap)); +int do_digraph(int c); +int get_digraph(int cmdline); +int getdigraph(int char1, int char2, int meta_char); +void putdigraph(char_u *str); +void listdigraphs(void); +char_u *keymap_init(void); +void ex_loadkeymap(exarg_T *eap); /* vim: set ft=c : */ diff --git a/src/proto/edit.pro b/src/proto/edit.pro index 1eed378706..27725839f3 100644 --- a/src/proto/edit.pro +++ b/src/proto/edit.pro @@ -1,43 +1,43 @@ /* edit.c */ -int edit __ARGS((int cmdchar, int startln, long count)); -void edit_putchar __ARGS((int c, int highlight)); -void edit_unputchar __ARGS((void)); -void display_dollar __ARGS((colnr_T col)); -void change_indent __ARGS((int type, int amount, int round, int replaced, int call_changed_bytes)); -void truncate_spaces __ARGS((char_u *line)); -void backspace_until_column __ARGS((int col)); -int vim_is_ctrl_x_key __ARGS((int c)); -int ins_compl_add_infercase __ARGS((char_u *str, int len, int icase, char_u *fname, int dir, int flags)); -void set_completion __ARGS((colnr_T startcol, list_T *list)); -void ins_compl_show_pum __ARGS((void)); -char_u *find_word_start __ARGS((char_u *ptr)); -char_u *find_word_end __ARGS((char_u *ptr)); -int ins_compl_active __ARGS((void)); -int ins_compl_add_tv __ARGS((typval_T *tv, int dir)); -void ins_compl_check_keys __ARGS((int frequency)); -int get_literal __ARGS((void)); -void insertchar __ARGS((int c, int flags, int second_indent)); -void auto_format __ARGS((int trailblank, int prev_line)); -int comp_textwidth __ARGS((int ff)); -int stop_arrow __ARGS((void)); -void set_last_insert __ARGS((int c)); -void free_last_insert __ARGS((void)); -char_u *add_char2buf __ARGS((int c, char_u *s)); -void beginline __ARGS((int flags)); -int oneright __ARGS((void)); -int oneleft __ARGS((void)); -int cursor_up __ARGS((long n, int upd_topline)); -int cursor_down __ARGS((long n, int upd_topline)); -int stuff_inserted __ARGS((int c, long count, int no_esc)); -char_u *get_last_insert __ARGS((void)); -char_u *get_last_insert_save __ARGS((void)); -void replace_push __ARGS((int c)); -int replace_push_mb __ARGS((char_u *p)); -void fixthisline __ARGS((int (*get_the_indent)(void))); -void fix_indent __ARGS((void)); -int in_cinkeys __ARGS((int keytyped, int when, int line_is_empty)); -int hkmap __ARGS((int c)); -void ins_scroll __ARGS((void)); -void ins_horscroll __ARGS((void)); -int ins_copychar __ARGS((linenr_T lnum)); +int edit(int cmdchar, int startln, long count); +void edit_putchar(int c, int highlight); +void edit_unputchar(void); +void display_dollar(colnr_T col); +void change_indent(int type, int amount, int round, int replaced, int call_changed_bytes); +void truncate_spaces(char_u *line); +void backspace_until_column(int col); +int vim_is_ctrl_x_key(int c); +int ins_compl_add_infercase(char_u *str, int len, int icase, char_u *fname, int dir, int flags); +void set_completion(colnr_T startcol, list_T *list); +void ins_compl_show_pum(void); +char_u *find_word_start(char_u *ptr); +char_u *find_word_end(char_u *ptr); +int ins_compl_active(void); +int ins_compl_add_tv(typval_T *tv, int dir); +void ins_compl_check_keys(int frequency); +int get_literal(void); +void insertchar(int c, int flags, int second_indent); +void auto_format(int trailblank, int prev_line); +int comp_textwidth(int ff); +int stop_arrow(void); +void set_last_insert(int c); +void free_last_insert(void); +char_u *add_char2buf(int c, char_u *s); +void beginline(int flags); +int oneright(void); +int oneleft(void); +int cursor_up(long n, int upd_topline); +int cursor_down(long n, int upd_topline); +int stuff_inserted(int c, long count, int no_esc); +char_u *get_last_insert(void); +char_u *get_last_insert_save(void); +void replace_push(int c); +int replace_push_mb(char_u *p); +void fixthisline(int (*get_the_indent)(void)); +void fix_indent(void); +int in_cinkeys(int keytyped, int when, int line_is_empty); +int hkmap(int c); +void ins_scroll(void); +void ins_horscroll(void); +int ins_copychar(linenr_T lnum); /* vim: set ft=c : */ diff --git a/src/proto/eval.pro b/src/proto/eval.pro index b807baf4c4..fae403a504 100644 --- a/src/proto/eval.pro +++ b/src/proto/eval.pro @@ -1,139 +1,139 @@ /* eval.c */ -void eval_init __ARGS((void)); -void eval_clear __ARGS((void)); -char_u *func_name __ARGS((void *cookie)); -linenr_T *func_breakpoint __ARGS((void *cookie)); -int *func_dbg_tick __ARGS((void *cookie)); -int func_level __ARGS((void *cookie)); -int current_func_returned __ARGS((void)); -void set_internal_string_var __ARGS((char_u *name, char_u *value)); -int var_redir_start __ARGS((char_u *name, int append)); -void var_redir_str __ARGS((char_u *value, int value_len)); -void var_redir_stop __ARGS((void)); -int eval_charconvert __ARGS((char_u *enc_from, char_u *enc_to, char_u *fname_from, char_u *fname_to)); -int eval_printexpr __ARGS((char_u *fname, char_u *args)); -void eval_diff __ARGS((char_u *origfile, char_u *newfile, char_u *outfile)); -void eval_patch __ARGS((char_u *origfile, char_u *difffile, char_u *outfile)); -int eval_to_bool __ARGS((char_u *arg, int *error, char_u **nextcmd, int skip)); -char_u *eval_to_string_skip __ARGS((char_u *arg, char_u **nextcmd, int skip)); -int skip_expr __ARGS((char_u **pp)); -char_u *eval_to_string __ARGS((char_u *arg, char_u **nextcmd, int convert)); -char_u *eval_to_string_safe __ARGS((char_u *arg, char_u **nextcmd, int use_sandbox)); -int eval_to_number __ARGS((char_u *expr)); -list_T *eval_spell_expr __ARGS((char_u *badword, char_u *expr)); -int get_spellword __ARGS((list_T *list, char_u **pp)); -typval_T *eval_expr __ARGS((char_u *arg, char_u **nextcmd)); -int call_vim_function __ARGS((char_u *func, int argc, char_u **argv, int safe, int str_arg_only, typval_T *rettv)); -long call_func_retnr __ARGS((char_u *func, int argc, char_u **argv, int safe)); -void *call_func_retstr __ARGS((char_u *func, int argc, char_u **argv, int safe)); -void *call_func_retlist __ARGS((char_u *func, int argc, char_u **argv, int safe)); -void *save_funccal __ARGS((void)); -void restore_funccal __ARGS((void *vfc)); -void prof_child_enter __ARGS((proftime_T *tm)); -void prof_child_exit __ARGS((proftime_T *tm)); -int eval_foldexpr __ARGS((char_u *arg, int *cp)); -void ex_let __ARGS((exarg_T *eap)); -void list_add_watch __ARGS((list_T *l, listwatch_T *lw)); -void list_rem_watch __ARGS((list_T *l, listwatch_T *lwrem)); -void *eval_for_line __ARGS((char_u *arg, int *errp, char_u **nextcmdp, int skip)); -int next_for_item __ARGS((void *fi_void, char_u *arg)); -void free_for_info __ARGS((void *fi_void)); -void set_context_for_expression __ARGS((expand_T *xp, char_u *arg, cmdidx_T cmdidx)); -void ex_call __ARGS((exarg_T *eap)); -void ex_unlet __ARGS((exarg_T *eap)); -void ex_lockvar __ARGS((exarg_T *eap)); -int do_unlet __ARGS((char_u *name, int forceit)); -void del_menutrans_vars __ARGS((void)); -char_u *get_user_var_name __ARGS((expand_T *xp, int idx)); -list_T *list_alloc __ARGS((void)); -void list_unref __ARGS((list_T *l)); -void list_free __ARGS((list_T *l, int recurse)); -listitem_T *listitem_alloc __ARGS((void)); -void listitem_free __ARGS((listitem_T *item)); -void listitem_remove __ARGS((list_T *l, listitem_T *item)); -dictitem_T *dict_lookup __ARGS((hashitem_T *hi)); -listitem_T *list_find __ARGS((list_T *l, long n)); -char_u *list_find_str __ARGS((list_T *l, long idx)); -void list_append __ARGS((list_T *l, listitem_T *item)); -int list_append_tv __ARGS((list_T *l, typval_T *tv)); -int list_append_dict __ARGS((list_T *list, dict_T *dict)); -int list_append_string __ARGS((list_T *l, char_u *str, int len)); -int list_insert_tv __ARGS((list_T *l, typval_T *tv, listitem_T *item)); -void list_insert __ARGS((list_T *l, listitem_T *ni, listitem_T *item)); -void vimlist_remove __ARGS((list_T *l, listitem_T *item, listitem_T *item2)); -int garbage_collect __ARGS((void)); -int set_ref_in_ht __ARGS((hashtab_T *ht, int copyID, list_stack_T **list_stack)); -int set_ref_in_list __ARGS((list_T *l, int copyID, ht_stack_T **ht_stack)); -int set_ref_in_item __ARGS((typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack)); -dict_T *dict_alloc __ARGS((void)); -void dict_unref __ARGS((dict_T *d)); -void dict_free __ARGS((dict_T *d, int recurse)); -dictitem_T *dictitem_alloc __ARGS((char_u *key)); -void dictitem_free __ARGS((dictitem_T *item)); -int dict_add __ARGS((dict_T *d, dictitem_T *item)); -int dict_add_nr_str __ARGS((dict_T *d, char *key, long nr, char_u *str)); -int dict_add_list __ARGS((dict_T *d, char *key, list_T *list)); -dictitem_T *dict_find __ARGS((dict_T *d, char_u *key, int len)); -char_u *get_dict_string __ARGS((dict_T *d, char_u *key, int save)); -long get_dict_number __ARGS((dict_T *d, char_u *key)); -char_u *get_function_name __ARGS((expand_T *xp, int idx)); -char_u *get_expr_name __ARGS((expand_T *xp, int idx)); -int func_call __ARGS((char_u *name, typval_T *args, dict_T *selfdict, typval_T *rettv)); -void dict_extend __ARGS((dict_T *d1, dict_T *d2, char_u *action)); -void mzscheme_call_vim __ARGS((char_u *name, typval_T *args, typval_T *rettv)); -float_T vim_round __ARGS((float_T f)); -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)); -void set_vim_var_nr __ARGS((int idx, long val)); -long get_vim_var_nr __ARGS((int idx)); -char_u *get_vim_var_str __ARGS((int idx)); -list_T *get_vim_var_list __ARGS((int idx)); -void set_vim_var_char __ARGS((int c)); -void set_vcount __ARGS((long count, long count1, int set_prevcount)); -void set_vim_var_string __ARGS((int idx, char_u *val, int len)); -void set_vim_var_list __ARGS((int idx, list_T *val)); -void set_vim_var_dict __ARGS((int idx, dict_T *val)); -void set_reg_var __ARGS((int c)); -char_u *v_exception __ARGS((char_u *oldval)); -char_u *v_throwpoint __ARGS((char_u *oldval)); -char_u *set_cmdarg __ARGS((exarg_T *eap, char_u *oldarg)); -void free_tv __ARGS((typval_T *varp)); -void clear_tv __ARGS((typval_T *varp)); -long get_tv_number_chk __ARGS((typval_T *varp, int *denote)); -char_u *get_tv_string_chk __ARGS((typval_T *varp)); -char_u *get_var_value __ARGS((char_u *name)); -void new_script_vars __ARGS((scid_T id)); -void init_var_dict __ARGS((dict_T *dict, dictitem_T *dict_var, int scope)); -void unref_var_dict __ARGS((dict_T *dict)); -void vars_clear __ARGS((hashtab_T *ht)); -void copy_tv __ARGS((typval_T *from, typval_T *to)); -void ex_echo __ARGS((exarg_T *eap)); -void ex_echohl __ARGS((exarg_T *eap)); -void ex_execute __ARGS((exarg_T *eap)); -void ex_function __ARGS((exarg_T *eap)); -void free_all_functions __ARGS((void)); -int translated_function_exists __ARGS((char_u *name)); -char_u *get_expanded_name __ARGS((char_u *name, int check)); -void func_dump_profile __ARGS((FILE *fd)); -char_u *get_user_func_name __ARGS((expand_T *xp, int idx)); -void ex_delfunction __ARGS((exarg_T *eap)); -void func_unref __ARGS((char_u *name)); -void func_ref __ARGS((char_u *name)); -void ex_return __ARGS((exarg_T *eap)); -int do_return __ARGS((exarg_T *eap, int reanimate, int is_cmd, void *rettv)); -void discard_pending_return __ARGS((void *rettv)); -char_u *get_return_cmd __ARGS((void *rettv)); -char_u *get_func_line __ARGS((int c, void *cookie, int indent)); -void func_line_start __ARGS((void *cookie)); -void func_line_exec __ARGS((void *cookie)); -void func_line_end __ARGS((void *cookie)); -int func_has_ended __ARGS((void *cookie)); -int func_has_abort __ARGS((void *cookie)); -int read_viminfo_varlist __ARGS((vir_T *virp, int writing)); -void write_viminfo_varlist __ARGS((FILE *fp)); -int store_session_globals __ARGS((FILE *fd)); -void last_set_msg __ARGS((scid_T scriptID)); -void ex_oldfiles __ARGS((exarg_T *eap)); -void reset_v_option_vars __ARGS((void)); -int modify_fname __ARGS((char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen)); -char_u *do_string_sub __ARGS((char_u *str, char_u *pat, char_u *sub, char_u *flags)); +void eval_init(void); +void eval_clear(void); +char_u *func_name(void *cookie); +linenr_T *func_breakpoint(void *cookie); +int *func_dbg_tick(void *cookie); +int func_level(void *cookie); +int current_func_returned(void); +void set_internal_string_var(char_u *name, char_u *value); +int var_redir_start(char_u *name, int append); +void var_redir_str(char_u *value, int value_len); +void var_redir_stop(void); +int eval_charconvert(char_u *enc_from, char_u *enc_to, char_u *fname_from, char_u *fname_to); +int eval_printexpr(char_u *fname, char_u *args); +void eval_diff(char_u *origfile, char_u *newfile, char_u *outfile); +void eval_patch(char_u *origfile, char_u *difffile, char_u *outfile); +int eval_to_bool(char_u *arg, int *error, char_u **nextcmd, int skip); +char_u *eval_to_string_skip(char_u *arg, char_u **nextcmd, int skip); +int skip_expr(char_u **pp); +char_u *eval_to_string(char_u *arg, char_u **nextcmd, int convert); +char_u *eval_to_string_safe(char_u *arg, char_u **nextcmd, int use_sandbox); +int eval_to_number(char_u *expr); +list_T *eval_spell_expr(char_u *badword, char_u *expr); +int get_spellword(list_T *list, char_u **pp); +typval_T *eval_expr(char_u *arg, char_u **nextcmd); +int call_vim_function(char_u *func, int argc, char_u **argv, int safe, int str_arg_only, typval_T *rettv); +long call_func_retnr(char_u *func, int argc, char_u **argv, int safe); +void *call_func_retstr(char_u *func, int argc, char_u **argv, int safe); +void *call_func_retlist(char_u *func, int argc, char_u **argv, int safe); +void *save_funccal(void); +void restore_funccal(void *vfc); +void prof_child_enter(proftime_T *tm); +void prof_child_exit(proftime_T *tm); +int eval_foldexpr(char_u *arg, int *cp); +void ex_let(exarg_T *eap); +void list_add_watch(list_T *l, listwatch_T *lw); +void list_rem_watch(list_T *l, listwatch_T *lwrem); +void *eval_for_line(char_u *arg, int *errp, char_u **nextcmdp, int skip); +int next_for_item(void *fi_void, char_u *arg); +void free_for_info(void *fi_void); +void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx); +void ex_call(exarg_T *eap); +void ex_unlet(exarg_T *eap); +void ex_lockvar(exarg_T *eap); +int do_unlet(char_u *name, int forceit); +void del_menutrans_vars(void); +char_u *get_user_var_name(expand_T *xp, int idx); +list_T *list_alloc(void); +void list_unref(list_T *l); +void list_free(list_T *l, int recurse); +listitem_T *listitem_alloc(void); +void listitem_free(listitem_T *item); +void listitem_remove(list_T *l, listitem_T *item); +dictitem_T *dict_lookup(hashitem_T *hi); +listitem_T *list_find(list_T *l, long n); +char_u *list_find_str(list_T *l, long idx); +void list_append(list_T *l, listitem_T *item); +int list_append_tv(list_T *l, typval_T *tv); +int list_append_dict(list_T *list, dict_T *dict); +int list_append_string(list_T *l, char_u *str, int len); +int list_insert_tv(list_T *l, typval_T *tv, listitem_T *item); +void list_insert(list_T *l, listitem_T *ni, listitem_T *item); +void vimlist_remove(list_T *l, listitem_T *item, listitem_T *item2); +int garbage_collect(void); +int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack); +int set_ref_in_list(list_T *l, int copyID, ht_stack_T **ht_stack); +int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack); +dict_T *dict_alloc(void); +void dict_unref(dict_T *d); +void dict_free(dict_T *d, int recurse); +dictitem_T *dictitem_alloc(char_u *key); +void dictitem_free(dictitem_T *item); +int dict_add(dict_T *d, dictitem_T *item); +int dict_add_nr_str(dict_T *d, char *key, long nr, char_u *str); +int dict_add_list(dict_T *d, char *key, list_T *list); +dictitem_T *dict_find(dict_T *d, char_u *key, int len); +char_u *get_dict_string(dict_T *d, char_u *key, int save); +long get_dict_number(dict_T *d, char_u *key); +char_u *get_function_name(expand_T *xp, int idx); +char_u *get_expr_name(expand_T *xp, int idx); +int func_call(char_u *name, typval_T *args, dict_T *selfdict, typval_T *rettv); +void dict_extend(dict_T *d1, dict_T *d2, char_u *action); +void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); +float_T vim_round(float_T f); +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); +void set_vim_var_nr(int idx, long val); +long get_vim_var_nr(int idx); +char_u *get_vim_var_str(int idx); +list_T *get_vim_var_list(int idx); +void set_vim_var_char(int c); +void set_vcount(long count, long count1, int set_prevcount); +void set_vim_var_string(int idx, char_u *val, int len); +void set_vim_var_list(int idx, list_T *val); +void set_vim_var_dict(int idx, dict_T *val); +void set_reg_var(int c); +char_u *v_exception(char_u *oldval); +char_u *v_throwpoint(char_u *oldval); +char_u *set_cmdarg(exarg_T *eap, char_u *oldarg); +void free_tv(typval_T *varp); +void clear_tv(typval_T *varp); +long get_tv_number_chk(typval_T *varp, int *denote); +char_u *get_tv_string_chk(typval_T *varp); +char_u *get_var_value(char_u *name); +void new_script_vars(scid_T id); +void init_var_dict(dict_T *dict, dictitem_T *dict_var, int scope); +void unref_var_dict(dict_T *dict); +void vars_clear(hashtab_T *ht); +void copy_tv(typval_T *from, typval_T *to); +void ex_echo(exarg_T *eap); +void ex_echohl(exarg_T *eap); +void ex_execute(exarg_T *eap); +void ex_function(exarg_T *eap); +void free_all_functions(void); +int translated_function_exists(char_u *name); +char_u *get_expanded_name(char_u *name, int check); +void func_dump_profile(FILE *fd); +char_u *get_user_func_name(expand_T *xp, int idx); +void ex_delfunction(exarg_T *eap); +void func_unref(char_u *name); +void func_ref(char_u *name); +void ex_return(exarg_T *eap); +int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); +void discard_pending_return(void *rettv); +char_u *get_return_cmd(void *rettv); +char_u *get_func_line(int c, void *cookie, int indent); +void func_line_start(void *cookie); +void func_line_exec(void *cookie); +void func_line_end(void *cookie); +int func_has_ended(void *cookie); +int func_has_abort(void *cookie); +int read_viminfo_varlist(vir_T *virp, int writing); +void write_viminfo_varlist(FILE *fp); +int store_session_globals(FILE *fd); +void last_set_msg(scid_T scriptID); +void ex_oldfiles(exarg_T *eap); +void reset_v_option_vars(void); +int modify_fname(char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen); +char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, char_u *flags); /* vim: set ft=c : */ diff --git a/src/proto/ex_cmds.pro b/src/proto/ex_cmds.pro index e4aa7befbe..d22b3dd714 100644 --- a/src/proto/ex_cmds.pro +++ b/src/proto/ex_cmds.pro @@ -1,66 +1,66 @@ /* ex_cmds.c */ -void do_ascii __ARGS((exarg_T *eap)); -void ex_align __ARGS((exarg_T *eap)); -void ex_sort __ARGS((exarg_T *eap)); -void ex_retab __ARGS((exarg_T *eap)); -int do_move __ARGS((linenr_T line1, linenr_T line2, linenr_T dest)); -void ex_copy __ARGS((linenr_T line1, linenr_T line2, linenr_T n)); -void free_prev_shellcmd __ARGS((void)); -void do_bang __ARGS((int addr_count, exarg_T *eap, int forceit, int do_in, int do_out)); -void do_shell __ARGS((char_u *cmd, int flags)); -char_u *make_filter_cmd __ARGS((char_u *cmd, char_u *itmp, char_u *otmp)); -void append_redir __ARGS((char_u *buf, int buflen, char_u *opt, char_u *fname)); -int viminfo_error __ARGS((char *errnum, char *message, char_u *line)); -int read_viminfo __ARGS((char_u *file, int flags)); -void write_viminfo __ARGS((char_u *file, int forceit)); -int viminfo_readline __ARGS((vir_T *virp)); -char_u *viminfo_readstring __ARGS((vir_T *virp, int off, int convert)); -void viminfo_writestring __ARGS((FILE *fd, char_u *p)); -void do_fixdel __ARGS((exarg_T *eap)); -void print_line_no_prefix __ARGS((linenr_T lnum, int use_number, int list)); -void print_line __ARGS((linenr_T lnum, int use_number, int list)); -int rename_buffer __ARGS((char_u *new_fname)); -void ex_file __ARGS((exarg_T *eap)); -void ex_update __ARGS((exarg_T *eap)); -void ex_write __ARGS((exarg_T *eap)); -int do_write __ARGS((exarg_T *eap)); -int check_overwrite __ARGS((exarg_T *eap, buf_T *buf, char_u *fname, char_u *ffname, int other)); -void ex_wnext __ARGS((exarg_T *eap)); -void do_wqall __ARGS((exarg_T *eap)); -int not_writing __ARGS((void)); -int getfile __ARGS((int fnum, char_u *ffname, char_u *sfname, int setpm, linenr_T lnum, int forceit)); -int do_ecmd __ARGS((int fnum, char_u *ffname, char_u *sfname, exarg_T *eap, linenr_T newlnum, int flags, win_T *oldwin)); -void ex_append __ARGS((exarg_T *eap)); -void ex_change __ARGS((exarg_T *eap)); -void ex_z __ARGS((exarg_T *eap)); -int check_restricted __ARGS((void)); -int check_secure __ARGS((void)); -void do_sub __ARGS((exarg_T *eap)); -int do_sub_msg __ARGS((int count_only)); -void ex_global __ARGS((exarg_T *eap)); -void global_exe __ARGS((char_u *cmd)); -int read_viminfo_sub_string __ARGS((vir_T *virp, int force)); -void write_viminfo_sub_string __ARGS((FILE *fp)); -void free_old_sub __ARGS((void)); -int prepare_tagpreview __ARGS((int undo_sync)); -void ex_help __ARGS((exarg_T *eap)); -void ex_helpclose __ARGS((exarg_T *eap)); -char_u *check_help_lang __ARGS((char_u *arg)); -int help_heuristic __ARGS((char_u *matched_string, int offset, int wrong_case)); -int find_help_tags __ARGS((char_u *arg, int *num_matches, char_u ***matches, int keep_lang)); -void fix_help_buffer __ARGS((void)); -void ex_exusage __ARGS((exarg_T *eap)); -void ex_viusage __ARGS((exarg_T *eap)); -void ex_helptags __ARGS((exarg_T *eap)); -void ex_sign __ARGS((exarg_T *eap)); -void sign_gui_started __ARGS((void)); -int sign_get_attr __ARGS((int typenr, int line)); -char_u *sign_get_text __ARGS((int typenr)); -void *sign_get_image __ARGS((int typenr)); -char_u *sign_typenr2name __ARGS((int typenr)); -void free_signs __ARGS((void)); -char_u *get_sign_name __ARGS((expand_T *xp, int idx)); -void set_context_in_sign_cmd __ARGS((expand_T *xp, char_u *arg)); -void ex_smile __ARGS((exarg_T *eap)); -void ex_drop __ARGS((exarg_T *eap)); +void do_ascii(exarg_T *eap); +void ex_align(exarg_T *eap); +void ex_sort(exarg_T *eap); +void ex_retab(exarg_T *eap); +int do_move(linenr_T line1, linenr_T line2, linenr_T dest); +void ex_copy(linenr_T line1, linenr_T line2, linenr_T n); +void free_prev_shellcmd(void); +void do_bang(int addr_count, exarg_T *eap, int forceit, int do_in, int do_out); +void do_shell(char_u *cmd, int flags); +char_u *make_filter_cmd(char_u *cmd, char_u *itmp, char_u *otmp); +void append_redir(char_u *buf, int buflen, char_u *opt, char_u *fname); +int viminfo_error(char *errnum, char *message, char_u *line); +int read_viminfo(char_u *file, int flags); +void write_viminfo(char_u *file, int forceit); +int viminfo_readline(vir_T *virp); +char_u *viminfo_readstring(vir_T *virp, int off, int convert); +void viminfo_writestring(FILE *fd, char_u *p); +void do_fixdel(exarg_T *eap); +void print_line_no_prefix(linenr_T lnum, int use_number, int list); +void print_line(linenr_T lnum, int use_number, int list); +int rename_buffer(char_u *new_fname); +void ex_file(exarg_T *eap); +void ex_update(exarg_T *eap); +void ex_write(exarg_T *eap); +int do_write(exarg_T *eap); +int check_overwrite(exarg_T *eap, buf_T *buf, char_u *fname, char_u *ffname, int other); +void ex_wnext(exarg_T *eap); +void do_wqall(exarg_T *eap); +int not_writing(void); +int getfile(int fnum, char_u *ffname, char_u *sfname, int setpm, linenr_T lnum, int forceit); +int do_ecmd(int fnum, char_u *ffname, char_u *sfname, exarg_T *eap, linenr_T newlnum, int flags, win_T *oldwin); +void ex_append(exarg_T *eap); +void ex_change(exarg_T *eap); +void ex_z(exarg_T *eap); +int check_restricted(void); +int check_secure(void); +void do_sub(exarg_T *eap); +int do_sub_msg(int count_only); +void ex_global(exarg_T *eap); +void global_exe(char_u *cmd); +int read_viminfo_sub_string(vir_T *virp, int force); +void write_viminfo_sub_string(FILE *fp); +void free_old_sub(void); +int prepare_tagpreview(int undo_sync); +void ex_help(exarg_T *eap); +void ex_helpclose(exarg_T *eap); +char_u *check_help_lang(char_u *arg); +int help_heuristic(char_u *matched_string, int offset, int wrong_case); +int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_lang); +void fix_help_buffer(void); +void ex_exusage(exarg_T *eap); +void ex_viusage(exarg_T *eap); +void ex_helptags(exarg_T *eap); +void ex_sign(exarg_T *eap); +void sign_gui_started(void); +int sign_get_attr(int typenr, int line); +char_u *sign_get_text(int typenr); +void *sign_get_image(int typenr); +char_u *sign_typenr2name(int typenr); +void free_signs(void); +char_u *get_sign_name(expand_T *xp, int idx); +void set_context_in_sign_cmd(expand_T *xp, char_u *arg); +void ex_smile(exarg_T *eap); +void ex_drop(exarg_T *eap); /* vim: set ft=c : */ diff --git a/src/proto/ex_cmds2.pro b/src/proto/ex_cmds2.pro index 88758517f2..54ccf12c30 100644 --- a/src/proto/ex_cmds2.pro +++ b/src/proto/ex_cmds2.pro @@ -1,90 +1,90 @@ /* ex_cmds2.c */ -void do_debug __ARGS((char_u *cmd)); -void ex_debug __ARGS((exarg_T *eap)); -void dbg_check_breakpoint __ARGS((exarg_T *eap)); -int dbg_check_skipped __ARGS((exarg_T *eap)); -void ex_breakadd __ARGS((exarg_T *eap)); -void ex_debuggreedy __ARGS((exarg_T *eap)); -void ex_breakdel __ARGS((exarg_T *eap)); -void ex_breaklist __ARGS((exarg_T *eap)); -linenr_T dbg_find_breakpoint __ARGS((int file, char_u *fname, linenr_T after)); -int has_profiling __ARGS((int file, char_u *fname, int *fp)); -void dbg_breakpoint __ARGS((char_u *name, linenr_T lnum)); -void profile_start __ARGS((proftime_T *tm)); -void profile_end __ARGS((proftime_T *tm)); -void profile_sub __ARGS((proftime_T *tm, proftime_T *tm2)); -char *profile_msg __ARGS((proftime_T *tm)); -void profile_setlimit __ARGS((long msec, proftime_T *tm)); -int profile_passed_limit __ARGS((proftime_T *tm)); -void profile_zero __ARGS((proftime_T *tm)); -void profile_divide __ARGS((proftime_T *tm, int count, proftime_T *tm2)); -void profile_add __ARGS((proftime_T *tm, proftime_T *tm2)); -void profile_self __ARGS((proftime_T *self, proftime_T *total, proftime_T *children)); -void profile_get_wait __ARGS((proftime_T *tm)); -void profile_sub_wait __ARGS((proftime_T *tm, proftime_T *tma)); -int profile_equal __ARGS((proftime_T *tm1, proftime_T *tm2)); -int profile_cmp __ARGS((const proftime_T *tm1, const proftime_T *tm2)); -void ex_profile __ARGS((exarg_T *eap)); -char_u *get_profile_name __ARGS((expand_T *xp, int idx)); -void set_context_in_profile_cmd __ARGS((expand_T *xp, char_u *arg)); -void profile_dump __ARGS((void)); -void script_prof_save __ARGS((proftime_T *tm)); -void script_prof_restore __ARGS((proftime_T *tm)); -void prof_inchar_enter __ARGS((void)); -void prof_inchar_exit __ARGS((void)); -int prof_def_func __ARGS((void)); -int autowrite __ARGS((buf_T *buf, int forceit)); -void autowrite_all __ARGS((void)); -int check_changed __ARGS((buf_T *buf, int flags)); -void browse_save_fname __ARGS((buf_T *buf)); -void dialog_changed __ARGS((buf_T *buf, int checkall)); -int can_abandon __ARGS((buf_T *buf, int forceit)); -int check_changed_any __ARGS((int hidden, int unload)); -int check_fname __ARGS((void)); -int buf_write_all __ARGS((buf_T *buf, int forceit)); -int get_arglist __ARGS((garray_T *gap, char_u *str)); -int get_arglist_exp __ARGS((char_u *str, int *fcountp, char_u ***fnamesp, int wig)); -void set_arglist __ARGS((char_u *str)); -void check_arg_idx __ARGS((win_T *win)); -void ex_args __ARGS((exarg_T *eap)); -void ex_previous __ARGS((exarg_T *eap)); -void ex_rewind __ARGS((exarg_T *eap)); -void ex_last __ARGS((exarg_T *eap)); -void ex_argument __ARGS((exarg_T *eap)); -void do_argfile __ARGS((exarg_T *eap, int argn)); -void ex_next __ARGS((exarg_T *eap)); -void ex_argedit __ARGS((exarg_T *eap)); -void ex_argadd __ARGS((exarg_T *eap)); -void ex_argdelete __ARGS((exarg_T *eap)); -void ex_listdo __ARGS((exarg_T *eap)); -void ex_compiler __ARGS((exarg_T *eap)); -void ex_runtime __ARGS((exarg_T *eap)); -int source_runtime __ARGS((char_u *name, int all)); -int do_in_runtimepath __ARGS((char_u *name, int all, void (*callback)(char_u *fname, void *ck), void *cookie)); -void ex_options __ARGS((exarg_T *eap)); -void ex_source __ARGS((exarg_T *eap)); -linenr_T *source_breakpoint __ARGS((void *cookie)); -int *source_dbg_tick __ARGS((void *cookie)); -int source_level __ARGS((void *cookie)); -int do_source __ARGS((char_u *fname, int check_other, int is_vimrc)); -void ex_scriptnames __ARGS((exarg_T *eap)); -void scriptnames_slash_adjust __ARGS((void)); -char_u *get_scriptname __ARGS((scid_T id)); -void free_scriptnames __ARGS((void)); -char *fgets_cr __ARGS((char *s, int n, FILE *stream)); -char_u *getsourceline __ARGS((int c, void *cookie, int indent)); -void script_line_start __ARGS((void)); -void script_line_exec __ARGS((void)); -void script_line_end __ARGS((void)); -void ex_scriptencoding __ARGS((exarg_T *eap)); -void ex_finish __ARGS((exarg_T *eap)); -void do_finish __ARGS((exarg_T *eap, int reanimate)); -int source_finished __ARGS((char_u *(*fgetline)(int, void *, int), void *cookie)); -void ex_checktime __ARGS((exarg_T *eap)); -char_u *get_mess_lang __ARGS((void)); -void set_lang_var __ARGS((void)); -void ex_language __ARGS((exarg_T *eap)); -void free_locales __ARGS((void)); -char_u *get_lang_arg __ARGS((expand_T *xp, int idx)); -char_u *get_locales __ARGS((expand_T *xp, int idx)); +void do_debug(char_u *cmd); +void ex_debug(exarg_T *eap); +void dbg_check_breakpoint(exarg_T *eap); +int dbg_check_skipped(exarg_T *eap); +void ex_breakadd(exarg_T *eap); +void ex_debuggreedy(exarg_T *eap); +void ex_breakdel(exarg_T *eap); +void ex_breaklist(exarg_T *eap); +linenr_T dbg_find_breakpoint(int file, char_u *fname, linenr_T after); +int has_profiling(int file, char_u *fname, int *fp); +void dbg_breakpoint(char_u *name, linenr_T lnum); +void profile_start(proftime_T *tm); +void profile_end(proftime_T *tm); +void profile_sub(proftime_T *tm, proftime_T *tm2); +char *profile_msg(proftime_T *tm); +void profile_setlimit(long msec, proftime_T *tm); +int profile_passed_limit(proftime_T *tm); +void profile_zero(proftime_T *tm); +void profile_divide(proftime_T *tm, int count, proftime_T *tm2); +void profile_add(proftime_T *tm, proftime_T *tm2); +void profile_self(proftime_T *self, proftime_T *total, proftime_T *children); +void profile_get_wait(proftime_T *tm); +void profile_sub_wait(proftime_T *tm, proftime_T *tma); +int profile_equal(proftime_T *tm1, proftime_T *tm2); +int profile_cmp(const proftime_T *tm1, const proftime_T *tm2); +void ex_profile(exarg_T *eap); +char_u *get_profile_name(expand_T *xp, int idx); +void set_context_in_profile_cmd(expand_T *xp, char_u *arg); +void profile_dump(void); +void script_prof_save(proftime_T *tm); +void script_prof_restore(proftime_T *tm); +void prof_inchar_enter(void); +void prof_inchar_exit(void); +int prof_def_func(void); +int autowrite(buf_T *buf, int forceit); +void autowrite_all(void); +int check_changed(buf_T *buf, int flags); +void browse_save_fname(buf_T *buf); +void dialog_changed(buf_T *buf, int checkall); +int can_abandon(buf_T *buf, int forceit); +int check_changed_any(int hidden, int unload); +int check_fname(void); +int buf_write_all(buf_T *buf, int forceit); +int get_arglist(garray_T *gap, char_u *str); +int get_arglist_exp(char_u *str, int *fcountp, char_u ***fnamesp, int wig); +void set_arglist(char_u *str); +void check_arg_idx(win_T *win); +void ex_args(exarg_T *eap); +void ex_previous(exarg_T *eap); +void ex_rewind(exarg_T *eap); +void ex_last(exarg_T *eap); +void ex_argument(exarg_T *eap); +void do_argfile(exarg_T *eap, int argn); +void ex_next(exarg_T *eap); +void ex_argedit(exarg_T *eap); +void ex_argadd(exarg_T *eap); +void ex_argdelete(exarg_T *eap); +void ex_listdo(exarg_T *eap); +void ex_compiler(exarg_T *eap); +void ex_runtime(exarg_T *eap); +int source_runtime(char_u *name, int all); +int do_in_runtimepath(char_u *name, int all, void (*callback)(char_u *fname, void *ck), void *cookie); +void ex_options(exarg_T *eap); +void ex_source(exarg_T *eap); +linenr_T *source_breakpoint(void *cookie); +int *source_dbg_tick(void *cookie); +int source_level(void *cookie); +int do_source(char_u *fname, int check_other, int is_vimrc); +void ex_scriptnames(exarg_T *eap); +void scriptnames_slash_adjust(void); +char_u *get_scriptname(scid_T id); +void free_scriptnames(void); +char *fgets_cr(char *s, int n, FILE *stream); +char_u *getsourceline(int c, void *cookie, int indent); +void script_line_start(void); +void script_line_exec(void); +void script_line_end(void); +void ex_scriptencoding(exarg_T *eap); +void ex_finish(exarg_T *eap); +void do_finish(exarg_T *eap, int reanimate); +int source_finished(char_u *(*fgetline)(int, void *, int), void *cookie); +void ex_checktime(exarg_T *eap); +char_u *get_mess_lang(void); +void set_lang_var(void); +void ex_language(exarg_T *eap); +void free_locales(void); +char_u *get_lang_arg(expand_T *xp, int idx); +char_u *get_locales(expand_T *xp, int idx); /* vim: set ft=c : */ diff --git a/src/proto/ex_docmd.pro b/src/proto/ex_docmd.pro index a998480eaf..f4d4347250 100644 --- a/src/proto/ex_docmd.pro +++ b/src/proto/ex_docmd.pro @@ -1,60 +1,60 @@ /* ex_docmd.c */ -void do_exmode __ARGS((int improved)); -int do_cmdline_cmd __ARGS((char_u *cmd)); -int do_cmdline __ARGS((char_u *cmdline, char_u *(*fgetline)(int, void *, int), void *cookie, int flags)); -int getline_equal __ARGS((char_u *(*fgetline)(int, void *, int), void *cookie, char_u *(*func)(int, void *, int))); -void *getline_cookie __ARGS((char_u *(*fgetline)(int, void *, int), void *cookie)); -int checkforcmd __ARGS((char_u **pp, char *cmd, int len)); -int modifier_len __ARGS((char_u *cmd)); -int cmd_exists __ARGS((char_u *name)); -char_u *set_one_cmd_context __ARGS((expand_T *xp, char_u *buff)); -char_u *skip_range __ARGS((char_u *cmd, int *ctx)); -void ex_ni __ARGS((exarg_T *eap)); -int expand_filename __ARGS((exarg_T *eap, char_u **cmdlinep, char_u **errormsgp)); -void separate_nextcmd __ARGS((exarg_T *eap)); -int ends_excmd __ARGS((int c)); -char_u *find_nextcmd __ARGS((char_u *p)); -char_u *check_nextcmd __ARGS((char_u *p)); -char_u *get_command_name __ARGS((expand_T *xp, int idx)); -void ex_comclear __ARGS((exarg_T *eap)); -void uc_clear __ARGS((garray_T *gap)); -char_u *get_user_commands __ARGS((expand_T *xp, int idx)); -char_u *get_user_cmd_addr_type __ARGS((expand_T *xp, int idx)); -char_u *get_user_cmd_flags __ARGS((expand_T *xp, int idx)); -char_u *get_user_cmd_nargs __ARGS((expand_T *xp, int idx)); -char_u *get_user_cmd_complete __ARGS((expand_T *xp, int idx)); -int parse_addr_type_arg __ARGS((char_u *value, int vallen, long *argt, int *addr_type_arg)); -int parse_compl_arg __ARGS((char_u *value, int vallen, int *complp, long *argt, char_u **compl_arg)); -void not_exiting __ARGS((void)); -void tabpage_close __ARGS((int forceit)); -void tabpage_close_other __ARGS((tabpage_T *tp, int forceit)); -void ex_all __ARGS((exarg_T *eap)); -void handle_drop __ARGS((int filec, char_u **filev, int split)); -void alist_clear __ARGS((alist_T *al)); -void alist_init __ARGS((alist_T *al)); -void alist_unlink __ARGS((alist_T *al)); -void alist_new __ARGS((void)); -void alist_expand __ARGS((int *fnum_list, int fnum_len)); -void alist_set __ARGS((alist_T *al, int count, char_u **files, int use_curbuf, int *fnum_list, int fnum_len)); -void alist_add __ARGS((alist_T *al, char_u *fname, int set_fnum)); -void alist_slash_adjust __ARGS((void)); -void ex_splitview __ARGS((exarg_T *eap)); -void tabpage_new __ARGS((void)); -void do_exedit __ARGS((exarg_T *eap, win_T *old_curwin)); -void free_cd_dir __ARGS((void)); -void post_chdir __ARGS((int local)); -void ex_cd __ARGS((exarg_T *eap)); -void do_sleep __ARGS((long msec)); -void ex_may_print __ARGS((exarg_T *eap)); -int vim_mkdir_emsg __ARGS((char_u *name, int prot)); -FILE *open_exfile __ARGS((char_u *fname, int forceit, char *mode)); -void update_topline_cursor __ARGS((void)); -void exec_normal_cmd __ARGS((char_u *cmd, int remap, int silent)); -int find_cmdline_var __ARGS((char_u *src, int *usedlen)); -char_u *eval_vars __ARGS((char_u *src, char_u *srcstart, int *usedlen, linenr_T *lnump, char_u **errormsg, int *escaped)); -char_u *expand_sfile __ARGS((char_u *arg)); -int put_eol __ARGS((FILE *fd)); -int put_line __ARGS((FILE *fd, char *s)); -void dialog_msg __ARGS((char_u *buff, char *format, char_u *fname)); -char_u *get_behave_arg __ARGS((expand_T *xp, int idx)); +void do_exmode(int improved); +int do_cmdline_cmd(char_u *cmd); +int do_cmdline(char_u *cmdline, char_u *(*fgetline)(int, void *, int), void *cookie, int flags); +int getline_equal(char_u *(*fgetline)(int, void *, int), void *cookie, char_u *(*func)(int, void *, int)); +void *getline_cookie(char_u *(*fgetline)(int, void *, int), void *cookie); +int checkforcmd(char_u **pp, char *cmd, int len); +int modifier_len(char_u *cmd); +int cmd_exists(char_u *name); +char_u *set_one_cmd_context(expand_T *xp, char_u *buff); +char_u *skip_range(char_u *cmd, int *ctx); +void ex_ni(exarg_T *eap); +int expand_filename(exarg_T *eap, char_u **cmdlinep, char_u **errormsgp); +void separate_nextcmd(exarg_T *eap); +int ends_excmd(int c); +char_u *find_nextcmd(char_u *p); +char_u *check_nextcmd(char_u *p); +char_u *get_command_name(expand_T *xp, int idx); +void ex_comclear(exarg_T *eap); +void uc_clear(garray_T *gap); +char_u *get_user_commands(expand_T *xp, int idx); +char_u *get_user_cmd_addr_type(expand_T *xp, int idx); +char_u *get_user_cmd_flags(expand_T *xp, int idx); +char_u *get_user_cmd_nargs(expand_T *xp, int idx); +char_u *get_user_cmd_complete(expand_T *xp, int idx); +int parse_addr_type_arg(char_u *value, int vallen, long *argt, int *addr_type_arg); +int parse_compl_arg(char_u *value, int vallen, int *complp, long *argt, char_u **compl_arg); +void not_exiting(void); +void tabpage_close(int forceit); +void tabpage_close_other(tabpage_T *tp, int forceit); +void ex_all(exarg_T *eap); +void handle_drop(int filec, char_u **filev, int split); +void alist_clear(alist_T *al); +void alist_init(alist_T *al); +void alist_unlink(alist_T *al); +void alist_new(void); +void alist_expand(int *fnum_list, int fnum_len); +void alist_set(alist_T *al, int count, char_u **files, int use_curbuf, int *fnum_list, int fnum_len); +void alist_add(alist_T *al, char_u *fname, int set_fnum); +void alist_slash_adjust(void); +void ex_splitview(exarg_T *eap); +void tabpage_new(void); +void do_exedit(exarg_T *ea