diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-29 22:47:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-29 22:47:03 +0100 |
commit | baaa7e9ec7398a813e21285c272fa99792642077 (patch) | |
tree | e9636114bf7c80ae3f7ded9ba9edb8b3ea504344 /src | |
parent | 92b8b2d307e34117f146319872010b0ccc9d2713 (diff) |
patch 7.4.1199v7.4.1199
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
Diffstat (limited to 'src')
-rw-r--r-- | src/ops.c | 54 | ||||
-rw-r--r-- | src/option.c | 104 | ||||
-rw-r--r-- | src/os_amiga.c | 12 | ||||
-rw-r--r-- | src/os_mac_conv.c | 4 | ||||
-rw-r--r-- | src/os_unix.c | 100 | ||||
-rw-r--r-- | src/os_vms.c | 4 | ||||
-rw-r--r-- | src/os_w32exe.c | 2 | ||||
-rw-r--r-- | src/popupmnu.c | 2 | ||||
-rw-r--r-- | src/pty.c | 10 | ||||
-rw-r--r-- | src/quickfix.c | 56 | ||||
-rw-r--r-- | src/regexp.c | 166 | ||||
-rw-r--r-- | src/regexp_nfa.c | 124 | ||||
-rw-r--r-- | src/screen.c | 88 | ||||
-rw-r--r-- | src/search.c | 38 | ||||
-rw-r--r-- | src/sha256.c | 4 | ||||
-rw-r--r-- | src/spell.c | 300 | ||||
-rw-r--r-- | src/syntax.c | 214 | ||||
-rw-r--r-- | src/tag.c | 30 | ||||
-rw-r--r-- | src/term.c | 42 | ||||
-rw-r--r-- | src/termlib.c | 14 | ||||
-rw-r--r-- | src/ui.c | 24 | ||||
-rw-r--r-- | src/undo.c | 70 | ||||
-rw-r--r-- | src/version.c | 8 | ||||
-rw-r--r-- | src/window.c | 104 |
24 files changed, 788 insertions, 786 deletions
@@ -89,39 +89,39 @@ struct block_def }; #ifdef FEAT_VISUALEXTRA -static void shift_block __ARGS((oparg_T *oap, int amount)); -static void block_insert __ARGS((oparg_T *oap, char_u *s, int b_insert, struct block_def*bdp)); -#endif -static int stuff_yank __ARGS((int, char_u *)); -static void put_reedit_in_typebuf __ARGS((int silent)); -static int put_in_typebuf __ARGS((char_u *s, int esc, int colon, - int silent)); -static void stuffescaped __ARGS((char_u *arg, int literally)); +static void shift_block(oparg_T *oap, int amount); +static void block_insert(oparg_T *oap, char_u *s, int b_insert, struct block_def*bdp); +#endif +static int stuff_yank(int, char_u *); +static void put_reedit_in_typebuf(int silent); +static int put_in_typebuf(char_u *s, int esc, int colon, + int silent); +static void stuffescaped(char_u *arg, int literally); #ifdef FEAT_MBYTE -static void mb_adjust_opend __ARGS((oparg_T *oap)); +static void mb_adjust_opend(oparg_T *oap); #endif -static void free_yank __ARGS((long)); -static void free_yank_all __ARGS((void)); -static int yank_copy_line __ARGS((struct block_def *bd, long y_idx)); +static void free_yank(long); +static void free_yank_all(void); +static int yank_copy_line(struct block_def *bd, long y_idx); #ifdef FEAT_CLIPBOARD -static void copy_yank_reg __ARGS((struct yankreg *reg)); -static void may_set_selection __ARGS((void)); +static void copy_yank_reg(struct yankreg *reg); +static void may_set_selection(void); #endif -static void dis_msg __ARGS((char_u *p, int skip_esc)); +static void dis_msg(char_u *p, int skip_esc); #if defined(FEAT_COMMENTS) || defined(PROTO) -static char_u *skip_comment __ARGS((char_u *line, int process, int include_space, int *is_comment)); +static char_u *skip_comment(char_u *line, int process, int include_space, int *is_comment); #endif -static void block_prep __ARGS((oparg_T *oap, struct block_def *, linenr_T, int)); -static int do_addsub __ARGS((int op_type, pos_T *pos, int length, linenr_T Prenum1)); +static void block_prep(oparg_T *oap, struct block_def *, linenr_T, int); +static int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1); #if defined(FEAT_CLIPBOARD) || defined(FEAT_EVAL) -static void str_to_reg __ARGS((struct yankreg *y_ptr, int yank_type, char_u *str, long len, long blocklen, int str_list)); +static void str_to_reg(struct yankreg *y_ptr, int yank_type, char_u *str, long len, long blocklen, int str_list); #endif -static int ends_in_white __ARGS((linenr_T lnum)); +static int ends_in_white(linenr_T lnum); #ifdef FEAT_COMMENTS -static int same_leader __ARGS((linenr_T lnum, int, char_u *, int, char_u *)); -static int fmt_check_par __ARGS((linenr_T, int *, char_u **, int do_comments)); +static int same_leader(linenr_T lnum, int, char_u *, int, char_u *); +static int fmt_check_par(linenr_T, int *, char_u **, int do_comments); #else -static int fmt_check_par __ARGS((linenr_T)); +static int fmt_check_par(linenr_T); #endif /* @@ -689,7 +689,7 @@ block_insert(oap, s, b_insert, bdp) void op_reindent(oap, how) oparg_T *oap; - int (*how) __ARGS((void)); + int (*how)(void); { long i; char_u *l; @@ -2276,7 +2276,7 @@ op_replace(oap, c) } #endif -static int swapchars __ARGS((int op_type, pos_T *pos, int length)); +static int swapchars(int op_type, pos_T *pos, int length); /* * Handle the (non-standard vi) tilde operator. Also for "gu", "gU" and "g?". @@ -6429,7 +6429,7 @@ get_reg_type(regname, reglen) return MAUTO; } -static char_u *getreg_wrap_one_line __ARGS((char_u *s, int flags)); +static char_u *getreg_wrap_one_line(char_u *s, int flags); /* * When "flags" has GREG_LIST return a list with text "s". @@ -6905,7 +6905,7 @@ clear_oparg(oap) vim_memset(oap, 0, sizeof(oparg_T)); } -static long line_count_info __ARGS((char_u *line, long *wc, long *cc, long limit, int eol_size)); +static long line_count_info(char_u *line, long *wc, long *cc, long limit, int eol_size); /* * Count the number of bytes, characters and "words" in a line. diff --git a/src/option.c b/src/option.c index 41d6cebd9b..4b69690377 100644 --- a/src/option.c +++ b/src/option.c @@ -3088,75 +3088,75 @@ static char *(p_fcl_values[]) = {"all", NULL}; static char *(p_cot_values[]) = {"menu", "menuone", "longest", "preview", "noinsert", "noselect", NULL}; #endif -static void set_option_default __ARGS((int, int opt_flags, int compatible)); -static void set_options_default __ARGS((int opt_flags)); -static char_u *term_bg_default __ARGS((void)); -static void did_set_option __ARGS((int opt_idx, int opt_flags, int new_value)); -static char_u *illegal_char __ARGS((char_u *, int)); -static int string_to_key __ARGS((char_u *arg)); +static void set_option_default(int, int opt_flags, int compatible); +static void set_options_default(int opt_flags); +static char_u *term_bg_default(void); +static void did_set_option(int opt_idx, int opt_flags, int new_value); +static char_u *illegal_char(char_u *, int); +static int string_to_key(char_u *arg); #ifdef FEAT_CMDWIN -static char_u *check_cedit __ARGS((void)); +static char_u *check_cedit(void); #endif #ifdef FEAT_TITLE -static void did_set_title __ARGS((int icon)); +static void did_set_title(int icon); #endif -static char_u *option_expand __ARGS((int opt_idx, char_u *val)); -static void didset_options __ARGS((void)); -static void didset_options2 __ARGS((void)); -static void check_string_option __ARGS((char_u **pp)); +static char_u *option_expand(int opt_idx, char_u *val); +static void didset_options(void); +static void didset_options2(void); +static void check_string_option(char_u **pp); #if defined(FEAT_EVAL) || defined(PROTO) -static long_u *insecure_flag __ARGS((int opt_idx, int opt_flags)); +static long_u *insecure_flag(int opt_idx, int opt_flags); #else # define insecure_flag(opt_idx, opt_flags) (&options[opt_idx].flags) #endif -static void set_string_option_global __ARGS((int opt_idx, char_u **varp)); -static char_u *set_string_option __ARGS((int opt_idx, char_u *value, int opt_flags)); -static char_u *did_set_string_option __ARGS((int opt_idx, char_u **varp, int new_value_alloced, char_u *oldval, char_u *errbuf, int opt_flags)); -static char_u *set_chars_option __ARGS((char_u **varp)); +static void set_string_option_global(int opt_idx, char_u **varp); +static char_u *set_string_option(int opt_idx, char_u *value, int opt_flags); +static char_u *did_set_string_option(int opt_idx, char_u **varp, int new_value_alloced, char_u *oldval, char_u *errbuf, int opt_flags); +static char_u *set_chars_option(char_u **varp); #ifdef FEAT_SYN_HL -static int int_cmp __ARGS((const void *a, const void *b)); +static int int_cmp(const void *a, const void *b); #endif #ifdef FEAT_CLIPBOARD -static char_u *check_clipboard_option __ARGS((void)); +static char_u *check_clipboard_option(void); #endif #ifdef FEAT_SPELL -static char_u *did_set_spell_option __ARGS((int is_spellfile)); -static char_u *compile_cap_prog __ARGS((synblock_T *synblock)); +static char_u *did_set_spell_option(int is_spellfile); +static char_u *compile_cap_prog(synblock_T *synblock); #endif #ifdef FEAT_EVAL -static void set_option_scriptID_idx __ARGS((int opt_idx, int opt_flags, int id)); -#endif -static char_u *set_bool_option __ARGS((int opt_idx, char_u *varp, int value, int opt_flags)); -static char_u *set_num_option __ARGS((int opt_idx, char_u *varp, long value, char_u *errbuf, size_t errbuflen, int opt_flags)); -static void check_redraw __ARGS((long_u flags)); -static int findoption __ARGS((char_u *)); -static int find_key_option __ARGS((char_u *)); -static void showoptions __ARGS((int all, int opt_flags)); -static int optval_default __ARGS((struct vimoption *, char_u *varp)); -static void showoneopt __ARGS((struct vimoption *, int opt_flags)); -static int put_setstring __ARGS((FILE *fd, char *cmd, char *name, char_u **valuep, int expand)); -static int put_setnum __ARGS((FILE *fd, char *cmd, char *name, long *valuep)); -static int put_setbool __ARGS((FILE *fd, char *cmd, char *name, int value)); -static int istermoption __ARGS((struct vimoption *)); -static char_u *get_varp_scope __ARGS((struct vimoption *p, int opt_flags)); -static char_u *get_varp __ARGS((struct vimoption *)); -static void option_value2string __ARGS((struct vimoption *, int opt_flags)); -static void check_winopt __ARGS((winopt_T *wop)); -static int wc_use_keyname __ARGS((char_u *varp, long *wcp)); +static void set_option_scriptID_idx(int opt_idx, int opt_flags, int id); +#endif +static char_u *set_bool_option(int opt_idx, char_u *varp, int value, int opt_flags); +static char_u *set_num_option(int opt_idx, char_u *varp, long value, char_u *errbuf, size_t errbuflen, int opt_flags); +static void check_redraw(long_u flags); +static int findoption(char_u *); +static int find_key_option(char_u *); +static void showoptions(int all, int opt_flags); +static int optval_default(struct vimoption *, char_u *varp); +static void showoneopt(struct vimoption *, int opt_flags); +static int put_setstring(FILE *fd, char *cmd, char *name, char_u **valuep, int expand); +static int put_setnum(FILE *fd, char *cmd, char *name, long *valuep); +static int put_setbool(FILE *fd, char *cmd, char *name, int value); +static int istermoption(struct vimoption *); +static char_u *get_varp_scope(struct vimoption *p, int opt_flags); +static char_u *get_varp(struct vimoption *); +static void option_value2string(struct vimoption *, int opt_flags); +static void check_winopt(winopt_T *wop); +static int wc_use_keyname(char_u *varp, long *wcp); #ifdef FEAT_LANGMAP -static void langmap_init __ARGS((void)); -static void langmap_set __ARGS((void)); +static void langmap_init(void); +static void langmap_set(void); #endif -static void paste_option_changed __ARGS((void)); -static void compatible_set __ARGS((void)); +static void paste_option_changed(void); +static void compatible_set(void); #ifdef FEAT_LINEBREAK -static void fill_breakat_flags __ARGS((void)); +static void fill_breakat_flags(void); #endif -static int opt_strings_flags __ARGS((char_u *val, char **values, unsigned *flagp, int list)); -static int check_opt_strings __ARGS((char_u *val, char **values, int)); -static int check_opt_wim __ARGS((void)); +static int opt_strings_flags(char_u *val, char **values, unsigned *flagp, int list); +static int check_opt_strings(char_u *val, char **values, int); +static int check_opt_wim(void); #ifdef FEAT_LINEBREAK -static int briopt_check __ARGS((win_T *wp)); +static int briopt_check(win_T *wp); #endif /* @@ -4085,7 +4085,7 @@ set_helplang_default(lang) #endif #ifdef FEAT_GUI -static char_u *gui_bg_default __ARGS((void)); +static char_u *gui_bg_default(void); static char_u * gui_bg_default() @@ -5656,7 +5656,7 @@ insecure_flag(opt_idx, opt_flags) #endif #ifdef FEAT_TITLE -static void redraw_titles __ARGS((void)); +static void redraw_titles(void); /* * Redraw the window title and/or tab page text later. @@ -11486,7 +11486,7 @@ typedef struct } langmap_entry_T; static garray_T langmap_mapga; -static void langmap_set_entry __ARGS((int from, int to)); +static void langmap_set_entry(int from, int to); /* * Search for an entry in "langmap_mapga" for "from". If found set the "to" diff --git a/src/os_amiga.c b/src/os_amiga.c index ccd3b0c1c5..4e95455847 100644 --- a/src/os_amiga.c +++ b/src/os_amiga.c @@ -71,12 +71,12 @@ #ifdef __amigaos4__ # define dos_packet(a, b, c) DoPkt(a, b, c, 0, 0, 0, 0) #elif !defined(AZTEC_C) && !defined(__AROS__) -static long dos_packet __ARGS((struct MsgPort *, long, long)); +static long dos_packet(struct MsgPort *, long, long); #endif -static int lock2name __ARGS((BPTR lock, char_u *buf, long len)); -static void out_num __ARGS((long n)); -static struct FileInfoBlock *get_fib __ARGS((char_u *)); -static int sortcmp __ARGS((const void *a, const void *b)); +static int lock2name(BPTR lock, char_u *buf, long len); +static void out_num(long n); +static struct FileInfoBlock *get_fib(char_u *); +static int sortcmp(const void *a, const void *b); static BPTR raw_in = (BPTR)NULL; static BPTR raw_out = (BPTR)NULL; @@ -219,7 +219,7 @@ mch_delay(msec, ignoreinput) int ignoreinput; { #ifndef LATTICE /* SAS declares void Delay(ULONG) */ - void Delay __ARGS((long)); + void Delay(long); #endif if (msec > 0) diff --git a/src/os_mac_conv.c b/src/os_mac_conv.c index 2c4038ef1b..4f71d65547 100644 --- a/src/os_mac_conv.c +++ b/src/os_mac_conv.c @@ -31,8 +31,8 @@ typedef int *TECObjectRef; typedef int CFStringRef; # endif -static char_u *mac_utf16_to_utf8 __ARGS((UniChar *from, size_t fromLen, size_t *actualLen)); -static UniChar *mac_utf8_to_utf16 __ARGS((char_u *from, size_t fromLen, size_t *actualLen)); +static char_u *mac_utf16_to_utf8(UniChar *from, size_t fromLen, size_t *actualLen); +static UniChar *mac_utf8_to_utf16(char_u *from, size_t fromLen, size_t *actualLen); /* Converter for composing decomposed HFS+ file paths */ static TECObjectRef gPathConverter; diff --git a/src/os_unix.c b/src/os_unix.c index 8d19004bfe..93e7dd4715 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -78,7 +78,7 @@ static int selinux_enabled = -1; #endif #if defined(HAVE_SELECT) -extern int select __ARGS((int, fd_set *, fd_set *, fd_set *, struct timeval *)); +extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); #endif #ifdef FEAT_MOUSE_GPM @@ -98,17 +98,17 @@ extern int select __ARGS((int, fd_set *, fd_set *, fd_set *, struct timeval *) # define KG_CTRLR 7 # define KG_CAPSSHIFT 8 -static void gpm_close __ARGS((void)); -static int gpm_open __ARGS((void)); -static int mch_gpm_process __ARGS((void)); +static void gpm_close(void); +static int gpm_open(void); +static int mch_gpm_process(void); #endif #ifdef FEAT_SYSMOUSE # include <sys/consio.h> # include <sys/fbio.h> -static int sysmouse_open __ARGS((void)); -static void sysmouse_close __ARGS((void)); +static int sysmouse_open(void); +static void sysmouse_close(void); static RETSIGTYPE sig_sysmouse __ARGS(SIGPROTOARG); #endif @@ -140,8 +140,8 @@ static RETSIGTYPE sig_sysmouse __ARGS(SIGPROTOARG); # include <X11/Shell.h> # include <X11/StringDefs.h> static Widget xterm_Shell = (Widget)0; -static void clip_update __ARGS((void)); -static void xterm_update __ARGS((void)); +static void clip_update(void); +static void xterm_update(void); # endif # if defined(FEAT_XCLIPBOARD) || defined(FEAT_TITLE) @@ -150,15 +150,15 @@ Window x11_window = 0; Display *x11_display = NULL; # ifdef FEAT_TITLE -static int get_x11_windis __ARGS((void)); -static void set_x11_title __ARGS((char_u *)); -static void set_x11_icon __ARGS((char_u *)); +static int get_x11_windis(void); +static void set_x11_title(char_u *); +static void set_x11_icon(char_u *); # endif #endif #ifdef FEAT_TITLE -static int get_x11_title __ARGS((int)); -static int get_x11_icon __ARGS((int)); +static int get_x11_title(int); +static int get_x11_icon(int); static char_u *oldtitle = NULL; static int did_set_title = FALSE; @@ -166,28 +166,28 @@ static char_u *oldicon = NULL; static int did_set_icon = FALSE; #endif -static void may_core_dump __ARGS((void)); +static void may_core_dump(void); #ifdef HAVE_UNION_WAIT typedef union wait waitstatus; #else typedef int waitstatus; #endif -static pid_t wait4pid __ARGS((pid_t, waitstatus *)); +static pid_t wait4pid(pid_t, waitstatus *); -static int WaitForChar __ARGS((long)); +static int WaitForChar(long); #if defined(__BEOS__) || defined(VMS) -int RealWaitForChar __ARGS((int, long, int *)); +int RealWaitForChar(int, long, int *); #else -static int RealWaitForChar __ARGS((int, long, int *)); +static int RealWaitForChar(int, long, int *); #endif #ifdef FEAT_XCLIPBOARD -static int do_xterm_trace __ARGS((void)); +static int do_xterm_trace(void); # define XT_TRACE_DELAY 50 /* delay for xterm tracing */ #endif -static void handle_resize __ARGS((void)); +static void handle_resize(void); #if defined(SIGWINCH) static RETSIGTYPE sig_winch __ARGS(SIGPROTOARG); @@ -207,16 +207,16 @@ static volatile int sig_alarm_called; #endif static RETSIGTYPE deathtrap __ARGS(SIGPROTOARG); -static void catch_int_signal __ARGS((void)); -static void set_signals __ARGS((void)); -static void catch_signals __ARGS((RETSIGTYPE (*func_deadly)(), RETSIGTYPE (*func_other)())); +static void catch_int_signal(void); +static void set_signals(void); +static void catch_signals(RETSIGTYPE (*func_deadly)(), RETSIGTYPE (*func_other)()); #ifndef __EMX__ -static int have_wildcard __ARGS((int, char_u **)); -static int have_dollars __ARGS((int, char_u **)); +static int have_wildcard(int, char_u **); +static int have_dollars(int, char_u **); #endif #ifndef __EMX__ -static int save_patterns __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file)); +static int save_patterns(int num_pat, char_u **pat, int *num_file, char_u ***file); #endif #ifndef SIG_ERR @@ -696,7 +696,7 @@ mch_delay(msec, ignoreinput) * Return a pointer to an item on the stack. Used to find out if the stack * grows up or down. */ -static void check_stack_growth __ARGS((char *p)); +static void check_stack_growth(char *p); static int stack_grows_downwards; /* @@ -820,7 +820,7 @@ static stack_t sigstk; /* for sigaltstack() */ static struct sigstack sigstk; /* for sigstack() */ # endif -static void init_signal_stack __ARGS((void)); +static void init_signal_stack(void); static char *signal_stack; static void @@ -833,7 +833,7 @@ init_signal_stack() || MAC_OS_X_VERSION_MAX_ALLOWED <= 1040) /* missing prototype. Adding it to osdef?.h.in doesn't work, because * "struct sigaltstack" needs to be declared. */ - extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss)); + extern int sigaltstack(const struct sigaltstack *ss, struct sigaltstack *oss); # endif # ifdef HAVE_SS_BASE @@ -1151,10 +1151,10 @@ sigcont_handler SIGDEFARG(sigarg) #endif # if defined(FEAT_CLIPBOARD) && defined(FEAT_X11) -static void loose_clipboard __ARGS((void)); +static void loose_clipboard(void); # ifdef USE_SYSTEM -static void save_clipboard __ARGS((void)); -static void restore_clipboard __ARGS((void)); +static void save_clipboard(void); +static void restore_clipboard(void); static void *clip_star_save = NULL; static void *clip_plus_save = NULL; @@ -1489,7 +1489,7 @@ mch_input_isatty() # if defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H) \ && (defined(FEAT_XCLIPBOARD) || defined(FEAT_TITLE)) -static void xopen_message __ARGS((struct timeval *tvp)); +static void xopen_message(struct timeval *tvp); /* * Give a message about the elapsed time for opening the X window. @@ -1513,10 +1513,10 @@ xopen_message(tvp) /* * A few functions shared by X11 title and clipboard code. */ -static int x_error_handler __ARGS((Display *dpy, XErrorEvent *error_event)); -static int x_error_check __ARGS((Display *dpy, XErrorEvent *error_event)); -static int x_connect_to_server __ARGS((void)); -static int test_x11_window __ARGS((Display *dpy)); +static int x_error_handler(Display *dpy, XErrorEvent *error_event); +static int x_error_check(Display *dpy, XErrorEvent *error_event); +static int x_connect_to_server(void); +static int test_x11_window(Display *dpy); static int got_x_error = FALSE; @@ -1556,7 +1556,7 @@ x_error_check(dpy, error_event) /* * An X IO Error handler, used to catch error while opening the display. */ -static int x_IOerror_check __ARGS((Display *dpy)); +static int x_IOerror_check(Display *dpy); static int x_IOerror_check(dpy) @@ -1573,8 +1573,8 @@ x_IOerror_check(dpy) /* * An X IO Error handler, used to catch terminal errors. */ -static int x_IOerror_handler __ARGS((Display *dpy)); -static void may_restore_clipboard __ARGS((void)); +static int x_IOerror_handler(Display *dpy); +static void may_restore_clipboard(void); static int xterm_dpy_was_reset = FALSE; static int @@ -1676,7 +1676,7 @@ test_x11_window(dpy) #ifdef FEAT_X11 -static int get_x11_thing __ARGS((int get_title, int test_only)); +static int get_x11_thing(int get_title, int test_only); /* * try to get x11 window and display @@ -2393,7 +2393,7 @@ mch_get_pid() } #if !defined(HAVE_STRERROR) && defined(USE_GETCWD) -static char *strerror __ARGS((int)); +static char *strerror(int); static char * strerror(err) @@ -3037,7 +3037,7 @@ mch_isrealdir(name) #endif } -static int executable_file __ARGS((char_u *name)); +static int executable_file(char_u *name); /* * Return 1 if "name" is an executable file, 0 if not or it doesn't exist. @@ -3247,7 +3247,7 @@ mch_free_mem() } #endif -static void exit_scroll __ARGS((void)); +static void exit_scroll(void); /* * Output a newline when exiting. @@ -7107,15 +7107,15 @@ clip_xterm_set_selection(cbd) /* * Code for X Session Management Protocol. */ -static void xsmp_handle_save_yourself __ARGS((SmcConn smc_conn, SmPointer client_data, int save_type, Bool shutdown, int interact_style, Bool fast)); -static void xsmp_die __ARGS((SmcConn smc_conn, SmPointer client_data)); -static void xsmp_save_complete __ARGS((SmcConn smc_conn, SmPointer client_data)); -static void xsmp_shutdown_cancelled __ARGS((SmcConn smc_conn, SmPointer client_data)); -static void xsmp_ice_connection __ARGS((IceConn iceConn, IcePointer clientData, Bool opening, IcePointer *watchData)); +static void xsmp_handle_save_yourself(SmcConn smc_conn, SmPointer client_data, int save_type, Bool shutdown, int interact_style, Bool fast); +static void xsmp_die(SmcConn smc_conn, SmPointer client_data); +static void xsmp_save_complete(SmcConn smc_conn, SmPointer client_data); +static void xsmp_shutdown_cancelled(SmcConn smc_conn, SmPointer client_data); +static void xsmp_ice_connection(IceConn iceConn, IcePointer clientData, Bool opening, IcePointer *watchData); # if defined(FEAT_GUI) && defined(USE_XSMP_INTERACT) -static void xsmp_handle_interaction __ARGS((SmcConn smc_conn, SmPointer client_data)); +static void xsmp_handle_interaction(SmcConn smc_conn, SmPointer client_data); /* * This is our chance to ask the user if they want to save, diff --git a/src/os_vms.c b/src/os_vms.c index 7c2d872553..30d29b98f7 100644 --- a/src/os_vms.c +++ b/src/os_vms.c @@ -77,8 +77,8 @@ static char *Fspec_Rms; /* rms file spec, passed implicitly between rout -static TT_MODE get_tty __ARGS((void)); -static void set_tty __ARGS((int row, int col)); +static TT_MODE get_tty(void); +static void set_tty(int row, int col); #define EXPL_ALLOC_INC 64 diff --git a/src/os_w32exe.c b/src/os_w32exe.c index d8fa2bffcd..69eec888bc 100644 --- a/src/os_w32exe.c +++ b/src/os_w32exe.c @@ -27,7 +27,7 @@ VimMain #else main #endif - __ARGS((int argc, char **argv)); + (int argc, char **argv); static int (_cdecl *pmain)(int, char **); #ifndef PROTO diff --git a/src/popupmnu.c b/src/popupmnu.c index 2f5e7dc811..b9d8e6041f 100644 --- a/src/popupmnu.c +++ b/src/popupmnu.c @@ -30,7 +30,7 @@ static int pum_col; /* left column of pum */ static int pum_do_redraw = FALSE; /* do redraw anyway */ -static int pum_set_selected __ARGS((int n, int repeat)); +static int pum_set_selected(int n, int repeat); #define PUM_DEF_HEIGHT 10 #define PUM_DEF_WIDTH 15 @@ -124,7 +124,7 @@ # undef HAVE_SVR4_PTYS #endif -static void initmaster __ARGS((int)); +static void initmaster(int); /* * Open all ptys with O_NOCTTY, just to be on the safe side. @@ -282,10 +282,10 @@ OpenPTY(ttyn) { int f; char *m; - char *(ptsname __ARGS((int))); - int unlockpt __ARGS((int)); - int grantpt __ARGS((int)); - RETSIGTYPE (*sigcld)__ARGS(SIGPROTOARG); + char *(ptsname(int)); + int unlockpt(int); + int grantpt(int); + RETSIGTYPE (*sigcld) SIGPROTOARG; /* used for opening a new pty-pair: */ static char TtyName[32]; diff --git a/src/quickfix.c b/src/quickfix.c index da405ed58d..319347be8f 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -106,36 +106,36 @@ struct efm_S int conthere; /* %> used */ }; -static int qf_init_ext __ARGS((qf_info_T *qi, char_u *efile, buf_T *buf, typval_T *tv, char_u *errorformat, int newlist, linenr_T lnumfirst, linenr_T lnumlast, char_u *qf_title)); -static void qf_store_title __ARGS((qf_info_T *qi, char_u *title)); -static void qf_new_list __ARGS((qf_info_T *qi, char_u *qf_title)); -static void ll_free_all __ARGS((qf_info_T **pqi)); -static int qf_add_entry __ARGS((qf_info_T *qi, qfline_T **prevp, char_u *dir, char_u *fname, int bufnum, char_u *mesg, long lnum, int col, int vis_col, char_u *pattern, int nr, int type, int valid)); -static qf_info_T *ll_new_list __ARGS((void)); -static void qf_msg __ARGS((qf_info_T *qi)); -static void qf_free __ARGS((qf_info_T *qi, int idx)); -static char_u *qf_types __ARGS((int, int)); -static int qf_get_fnum __ARGS((char_u *, char_u *)); -static char_u *qf_push_dir __ARGS((char_u *, struct dir_stack_T **)); -static char_u *qf_pop_dir __ARGS((struct dir_stack_T **)); -static char_u *qf_guess_filepath __ARGS((char_u *)); -static void qf_fmt_text __ARGS((char_u *text, char_u *buf, int bufsize)); -static void qf_clean_dir_stack __ARGS((struct dir_stack_T **)); +static int qf_init_ext(qf_info_T *qi, char_u *efile, buf_T *buf, typval_T *tv, char_u *errorformat, int newlist, linenr_T lnumfirst, linenr_T lnumlast, char_u *qf_title); +static void qf_store_title(qf_info_T *qi, char_u *title); +static void qf_new_list(qf_info_T *qi, char_u *qf_title); +static void ll_free_all(qf_info_T **pqi); +static int qf_add_entry(qf_info_T *qi, qfline_T **prevp, char_u *dir, char_u *fname, int bufnum, char_u *mesg, long lnum, int col, int vis_col, char_u *pattern, int nr, int type, int valid); +static qf_info_T *ll_new_list(void); +static void qf_msg(qf_info_T *qi); +static void qf_free(qf_info_T *qi, int idx); +static char_u *qf_types(int, int); +static int qf_get_fnum(char_u *, char_u *); +static char_u *qf_push_dir(char_u *, struct dir_stack_T **); +static char_u *qf_pop_dir(struct dir_stack_T **); +static char_u *qf_guess_filepath(char_u *); +static void qf_fmt_text(char_u *text, char_u *buf, int bufsize); +static void qf_clean_dir_stack(struct dir_stack_T **); #ifdef FEAT_WINDOWS -static int qf_win_pos_update __ARGS((qf_info_T *qi, int old_qf_index)); -static int is_qf_win __ARGS((win_T *win, qf_info_T *qi)); -static win_T *qf_find_win __ARGS((qf_info_T *qi)); -static buf_T *qf_find_buf __ARGS((qf_info_T *qi)); -static void qf_update_buffer __ARGS((qf_info_T *qi)); -static void qf_set_title_var __ARGS((qf_info_T *qi)); -static void qf_fill_buffer __ARGS((qf_info_T *qi)); +static int qf_win_pos_update(qf_info_T *qi, int old_qf_index); +static int is_qf_win(win_T *win, qf_info_T *qi); +static win_T *qf_find_win(qf_info_T *qi); +static buf_T *qf_find_buf(qf_info_T *qi); +static void qf_update_buffer(qf_info_T *qi); +static void qf_set_title_var(qf_info_T *qi); +static void qf_fill_buffer(qf_info_T *qi); #endif -static char_u *get_mef_name __ARGS((void)); -static void restore_start_dir __ARGS((char_u *dirname_start)); -static buf_T *load_dummy_buffer __ARGS((char_u *fname, char_u *dirname_start, char_u *resulting_dir)); -static void wipe_dummy_buffer __ARGS((buf_T *buf, char_u *dirname_start)); -static void unload_dummy_buffer __ARGS((buf_T *buf, char_u *dirname_start)); -static qf_info_T *ll_get_or_alloc_list __ARGS((win_T *)); +static char_u *get_mef_name(void); +static void restore_start_dir(char_u *dirname_start); +static buf_T *load_dummy_buffer(char_u *fname, char_u *dirname_start, char_u *resulting_dir); +static void wipe_dummy_buffer(buf_T *buf, char_u *dirname_start); +static void unload_dummy_buffer(buf_T *buf, char_u *dirname_start); +static qf_info_T *ll_get_or_alloc_list(win_T *); /* Quickfix window check helper macro */ #define IS_QF_WINDOW(wp) (bt_quickfix(wp->w_buffer) && wp->w_llist_ref == NULL) diff --git a/src/regexp.c b/src/regexp.c index 37d42c71a2..8ff30db34f 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -255,8 +255,8 @@ #define un_Magic(x) ((x) + 256) #define is_Magic(x) ((x) < 0) -static int no_Magic __ARGS((int x)); -static int toggle_Magic __ARGS((int x)); +static int no_Magic(int x); +static int toggle_Magic(int x); static int no_Magic(x) @@ -347,18 +347,18 @@ toggle_Magic(x) #define MAX_LIMIT (32767L << 16L) -static int re_multi_type __ARGS((int)); -static int cstrncmp __ARGS((char_u *s1, char_u *s2, int *n)); -static char_u *cstrchr __ARGS((char_u *, int)); +static int re_multi_type(int); +static int cstrncmp(char_u *s1, char_u *s2, int *n); +static char_u *cstrchr(char_u *, int); #ifdef BT_REGEXP_DUMP -static void regdump __ARGS((char_u *, bt_regprog_T *)); +static void regdump(char_u *, bt_regprog_T *); #endif #ifdef DEBUG -static char_u *regprop __ARGS((char_u *)); +static char_u *regprop(char_u *); #endif -static int re_mult_next __ARGS((char *what)); +static int re_mult_next(char *what); static char_u e_missingbracket[] = N_("E769: Missing ] after %s["); static char_u e_unmatchedpp[] = N_("E53: Unmatched %s%%("); @@ -426,13 +426,13 @@ static char_u *reg_prev_sub = NULL; static char_u REGEXP_INRANGE[] = "]^-n\\"; static char_u REGEXP_ABBR[] = "nrtebdoxuU"; -static int backslash_trans __ARGS((int c)); -static int get_char_class __ARGS((char_u **pp)); -static int get_equi_class __ARGS((char_u **pp)); -static void reg_equi_class __ARGS((int c)); -static int get_coll_element __ARGS((char_u **pp)); -static char_u *skip_anyof __ARGS((char_u *p)); -static void init_class_tab __ARGS((void)); +static int backslash_trans(int c); +static int get_char_class(char_u **pp); +static int get_equi_class(char_u **pp); +static void reg_equi_class(int c); +static int get_coll_element(char_u **pp); +static char_u *skip_anyof(char_u *p); +static void init_class_tab(void); /* * Translate '\x' to its control character, except "\n", which is Magic. @@ -689,33 +689,33 @@ typedef struct /* * Forward declarations for vim_regcomp()'s friends. */ -static void initchr __ARGS((char_u *)); -static void save_parse_state __ARGS((parse_state_T *ps)); -static void restore_parse_state __ARGS((parse_state_T *ps)); -static int getchr __ARGS((void)); -static void skipchr_keepstart __ARGS((void)); -static int peekchr __ARGS((void)); -static void skipchr __ARGS((void)); -static void ungetchr __ARGS((void)); -static int gethexchrs __ARGS((int maxinputlen)); -static int getoctchrs __ARGS((void)); -static int getdecchrs __ARGS((void)); -static int coll_ |