mirror of
https://github.com/vim/vim.git
synced 2025-08-26 20:03:41 -04:00
patch 7.4.1200
Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
This commit is contained in:
parent
baaa7e9ec7
commit
d99df423c5
@ -29,10 +29,8 @@
|
|||||||
#include <X11/Intrinsic.h>
|
#include <X11/Intrinsic.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
|
||||||
#define __ARGS(x) x
|
|
||||||
|
|
||||||
/* Client API */
|
/* Client API */
|
||||||
char * sendToVim __ARGS((Display *dpy, char *name, char *cmd, int asKeys, int *code));
|
char * sendToVim(Display *dpy, char *name, char *cmd, int asKeys, int *code);
|
||||||
|
|
||||||
#ifdef MAIN
|
#ifdef MAIN
|
||||||
/* A sample program */
|
/* A sample program */
|
||||||
@ -70,15 +68,15 @@ main(int argc, char **argv)
|
|||||||
* Forward declarations for procedures defined later in this file:
|
* Forward declarations for procedures defined later in this file:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int x_error_check __ARGS((Display *dpy, XErrorEvent *error_event));
|
static int x_error_check(Display *dpy, XErrorEvent *error_event);
|
||||||
static int AppendPropCarefully __ARGS((Display *display,
|
static int AppendPropCarefully(Display *display,
|
||||||
Window window, Atom property, char *value, int length));
|
Window window, Atom property, char *value, int length);
|
||||||
static Window LookupName __ARGS((Display *dpy, char *name,
|
static Window LookupName(Display *dpy, char *name,
|
||||||
int delete, char **loose));
|
int delete, char **loose);
|
||||||
static int SendInit __ARGS((Display *dpy));
|
static int SendInit(Display *dpy);
|
||||||
static char *SendEventProc __ARGS((Display *dpy, XEvent *eventPtr,
|
static char *SendEventProc(Display *dpy, XEvent *eventPtr,
|
||||||
int expect, int *code));
|
int expect, int *code);
|
||||||
static int IsSerialName __ARGS((char *name));
|
static int IsSerialName(char *name);
|
||||||
|
|
||||||
/* Private variables */
|
/* Private variables */
|
||||||
static Atom registryProperty = None;
|
static Atom registryProperty = None;
|
||||||
|
@ -1660,10 +1660,11 @@ PRO_AUTO = \
|
|||||||
hashtab.pro \
|
hashtab.pro \
|
||||||
hangulin.pro \
|
hangulin.pro \
|
||||||
if_cscope.pro \
|
if_cscope.pro \
|
||||||
if_xcmdsrv.pro \
|
if_lua.pro \
|
||||||
if_python.pro \
|
if_python.pro \
|
||||||
if_python3.pro \
|
if_python3.pro \
|
||||||
if_ruby.pro \
|
if_ruby.pro \
|
||||||
|
if_xcmdsrv.pro \
|
||||||
json.pro \
|
json.pro \
|
||||||
main.pro \
|
main.pro \
|
||||||
mark.pro \
|
mark.pro \
|
||||||
@ -1680,6 +1681,7 @@ PRO_AUTO = \
|
|||||||
option.pro \
|
option.pro \
|
||||||
os_unix.pro \
|
os_unix.pro \
|
||||||
popupmnu.pro \
|
popupmnu.pro \
|
||||||
|
pty.pro \
|
||||||
quickfix.pro \
|
quickfix.pro \
|
||||||
regexp.pro \
|
regexp.pro \
|
||||||
screen.pro \
|
screen.pro \
|
||||||
@ -1997,6 +1999,7 @@ test_arglist \
|
|||||||
test_cursor_func \
|
test_cursor_func \
|
||||||
test_delete \
|
test_delete \
|
||||||
test_expand \
|
test_expand \
|
||||||
|
test_glob2regpat \
|
||||||
test_hardcopy \
|
test_hardcopy \
|
||||||
test_increment \
|
test_increment \
|
||||||
test_json \
|
test_json \
|
||||||
|
@ -56,12 +56,12 @@ typedef struct {
|
|||||||
} bf_state_T;
|
} bf_state_T;
|
||||||
|
|
||||||
|
|
||||||
static void bf_e_block __ARGS((bf_state_T *state, UINT32_T *p_xl, UINT32_T *p_xr));
|
static void bf_e_block(bf_state_T *state, UINT32_T *p_xl, UINT32_T *p_xr);
|
||||||
static void bf_e_cblock __ARGS((bf_state_T *state, char_u *block));
|
static void bf_e_cblock(bf_state_T *state, char_u *block);
|
||||||
static int bf_check_tables __ARGS((UINT32_T pax[18], UINT32_T sbx[4][256], UINT32_T val));
|
static int bf_check_tables(UINT32_T pax[18], UINT32_T sbx[4][256], UINT32_T val);
|
||||||
static int bf_self_test __ARGS((void));
|
static int bf_self_test(void);
|
||||||
static void bf_key_init __ARGS((bf_state_T *state, char_u *password, char_u *salt, int salt_len));
|
static void bf_key_init(bf_state_T *state, char_u *password, char_u *salt, int salt_len);
|
||||||
static void bf_cfb_init __ARGS((bf_state_T *state, char_u *seed, int seed_len));
|
static void bf_cfb_init(bf_state_T *state, char_u *seed, int seed_len);
|
||||||
|
|
||||||
/* Blowfish code */
|
/* Blowfish code */
|
||||||
static UINT32_T pax_init[18] = {
|
static UINT32_T pax_init[18] = {
|
||||||
|
@ -85,7 +85,7 @@ typedef struct exarg exarg_T;
|
|||||||
#ifdef DO_DECLARE_EXCMD
|
#ifdef DO_DECLARE_EXCMD
|
||||||
# define EX(a, b, c, d, e) {(char_u *)b, c, (long_u)(d), e}
|
# define EX(a, b, c, d, e) {(char_u *)b, c, (long_u)(d), e}
|
||||||
|
|
||||||
typedef void (*ex_func_T) __ARGS((exarg_T *eap));
|
typedef void (*ex_func_T) (exarg_T *eap);
|
||||||
|
|
||||||
static struct cmdname
|
static struct cmdname
|
||||||
{
|
{
|
||||||
@ -1739,7 +1739,7 @@ struct exarg
|
|||||||
int useridx; /* user command index */
|
int useridx; /* user command index */
|
||||||
#endif
|
#endif
|
||||||
char_u *errmsg; /* returned error message */
|
char_u *errmsg; /* returned error message */
|
||||||
char_u *(*getline) __ARGS((int, void *, int));
|
char_u *(*getline)(int, void *, int);
|
||||||
void *cookie; /* argument for getline() */
|
void *cookie; /* argument for getline() */
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
struct condstack *cstack; /* condition stack for ":if" etc. */
|
struct condstack *cstack; /* condition stack for ":if" etc. */
|
||||||
|
@ -2999,7 +2999,7 @@ source_runtime(name, all)
|
|||||||
do_in_runtimepath(name, all, callback, cookie)
|
do_in_runtimepath(name, all, callback, cookie)
|
||||||
char_u *name;
|
char_u *name;
|
||||||
int all;
|
int all;
|
||||||
void (*callback)__ARGS((char_u *fname, void *ck));
|
void (*callback)(char_u *fname, void *ck);
|
||||||
void *cookie;
|
void *cookie;
|
||||||
{
|
{
|
||||||
char_u *rtp;
|
char_u *rtp;
|
||||||
|
@ -4709,7 +4709,7 @@ ExpandFromContext(xp, pat, num_file, file, options)
|
|||||||
static struct expgen
|
static struct expgen
|
||||||
{
|
{
|
||||||
int context;
|
int context;
|
||||||
char_u *((*func)__ARGS((expand_T *, int)));
|
char_u *((*func)(expand_T *, int));
|
||||||
int ic;
|
int ic;
|
||||||
int escaped;
|
int escaped;
|
||||||
} tab[] =
|
} tab[] =
|
||||||
@ -4804,7 +4804,7 @@ ExpandGeneric(xp, regmatch, num_file, file, func, escaped)
|
|||||||
regmatch_T *regmatch;
|
regmatch_T *regmatch;
|
||||||
int *num_file;
|
int *num_file;
|
||||||
char_u ***file;
|
char_u ***file;
|
||||||
char_u *((*func)__ARGS((expand_T *, int)));
|
char_u *((*func)(expand_T *, int));
|
||||||
/* returns a string from the list */
|
/* returns a string from the list */
|
||||||
int escaped;
|
int escaped;
|
||||||
{
|
{
|
||||||
|
@ -2142,7 +2142,7 @@ typedef struct
|
|||||||
static int fold_changed;
|
static int fold_changed;
|
||||||
|
|
||||||
/* Function declarations. {{{2 */
|
/* Function declarations. {{{2 */
|
||||||
static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, linenr_T startlnum, fline_T *flp, void (*getlevel)__ARGS((fline_T *)), linenr_T bot, int topflags);
|
static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, linenr_T startlnum, fline_T *flp, void (*getlevel)(fline_T *), linenr_T bot, int topflags);
|
||||||
static int foldInsert(garray_T *gap, int i);
|
static int foldInsert(garray_T *gap, int i);
|
||||||
static void foldSplit(garray_T *gap, int i, linenr_T top, linenr_T bot);
|
static void foldSplit(garray_T *gap, int i, linenr_T top, linenr_T bot);
|
||||||
static void foldRemove(garray_T *gap, linenr_T top, linenr_T bot);
|
static void foldRemove(garray_T *gap, linenr_T top, linenr_T bot);
|
||||||
@ -2169,7 +2169,7 @@ foldUpdateIEMS(wp, top, bot)
|
|||||||
linenr_T start;
|
linenr_T start;
|
||||||
linenr_T end;
|
linenr_T end;
|
||||||
fline_T fline;
|
fline_T fline;
|
||||||
void (*getlevel)__ARGS((fline_T *));
|
void (*getlevel)(fline_T *);
|
||||||
int level;
|
int level;
|
||||||
fold_T *fp;
|
fold_T *fp;
|
||||||
|
|
||||||
@ -2422,7 +2422,7 @@ foldUpdateIEMSRecurse(gap, level, startlnum, flp, getlevel, bot, topflags)
|
|||||||
int level;
|
int level;
|
||||||
linenr_T startlnum;
|
linenr_T startlnum;
|
||||||
fline_T *flp;
|
fline_T *flp;
|
||||||
void (*getlevel)__ARGS((fline_T *));
|
void (*getlevel)(fline_T *);
|
||||||
linenr_T bot;
|
linenr_T bot;
|
||||||
int topflags; /* flags used by containing fold */
|
int topflags; /* flags used by containing fold */
|
||||||
{
|
{
|
||||||
|
@ -845,19 +845,19 @@ EXTERN vimconv_T output_conv; /* type of output conversion */
|
|||||||
* The value is set in mb_init();
|
* The value is set in mb_init();
|
||||||
*/
|
*/
|
||||||
/* length of char in bytes, including following composing chars */
|
/* length of char in bytes, including following composing chars */
|
||||||
EXTERN int (*mb_ptr2len) __ARGS((char_u *p)) INIT(= latin_ptr2len);
|
EXTERN int (*mb_ptr2len)(char_u *p) INIT(= latin_ptr2len);
|
||||||
/* idem, with limit on string length */
|
/* idem, with limit on string length */
|
||||||
EXTERN int (*mb_ptr2len_len) __ARGS((char_u *p, int size)) INIT(= latin_ptr2len_len);
|
EXTERN int (*mb_ptr2len_len)(char_u *p, int size) INIT(= latin_ptr2len_len);
|
||||||
/* byte length of char */
|
/* byte length of char */
|
||||||
EXTERN int (*mb_char2len) __ARGS((int c)) INIT(= latin_char2len);
|
EXTERN int (*mb_char2len)(int c) INIT(= latin_char2len);
|
||||||
/* convert char to bytes, return the length */
|
/* convert char to bytes, return the length */
|
||||||
EXTERN int (*mb_char2bytes) __ARGS((int c, char_u *buf)) INIT(= latin_char2bytes);
|
EXTERN int (*mb_char2bytes)(int c, char_u *buf) INIT(= latin_char2bytes);
|
||||||
EXTERN int (*mb_ptr2cells) __ARGS((char_u *p)) INIT(= latin_ptr2cells);
|
EXTERN int (*mb_ptr2cells)(char_u *p) INIT(= latin_ptr2cells);
|
||||||
EXTERN int (*mb_ptr2cells_len) __ARGS((char_u *p, int size)) INIT(= latin_ptr2cells_len);
|
EXTERN int (*mb_ptr2cells_len)(char_u *p, int size) INIT(= latin_ptr2cells_len);
|
||||||
EXTERN int (*mb_char2cells) __ARGS((int c)) INIT(= latin_char2cells);
|
EXTERN int (*mb_char2cells)(int c) INIT(= latin_char2cells);
|
||||||
EXTERN int (*mb_off2cells) __ARGS((unsigned off, unsigned max_off)) INIT(= latin_off2cells);
|
EXTERN int (*mb_off2cells)(unsigned off, unsigned max_off) INIT(= latin_off2cells);
|
||||||
EXTERN int (*mb_ptr2char) __ARGS((char_u *p)) INIT(= latin_ptr2char);
|
EXTERN int (*mb_ptr2char)(char_u *p) INIT(= latin_ptr2char);
|
||||||
EXTERN int (*mb_head_off) __ARGS((char_u *base, char_u *p)) INIT(= latin_head_off);
|
EXTERN int (*mb_head_off)(char_u *base, char_u *p) INIT(= latin_head_off);
|
||||||
|
|
||||||
# if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
# if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
||||||
/* Pointers to functions and variables to be loaded at runtime */
|
/* Pointers to functions and variables to be loaded at runtime */
|
||||||
|
@ -94,7 +94,7 @@ typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
|
|||||||
|
|
||||||
extern WidgetClass vim_scrollbarWidgetClass;
|
extern WidgetClass vim_scrollbarWidgetClass;
|
||||||
|
|
||||||
extern void vim_XawScrollbarSetThumb __ARGS((Widget, double, double, double));
|
extern void vim_XawScrollbarSetThumb(Widget, double, double, double);
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -195,7 +195,7 @@ static void createBalloonEvalWindow(BalloonEval *);
|
|||||||
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
|
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
|
||||||
void *target;
|
void *target;
|
||||||
char_u *mesg;
|
char_u *mesg;
|
||||||
void (*mesgCB)__ARGS((BalloonEval *, int));
|
void (*mesgCB)(BalloonEval *, int);
|
||||||
void *clientData;
|
void *clientData;
|
||||||
{
|
{
|
||||||
#ifndef FEAT_GUI_GTK
|
#ifndef FEAT_GUI_GTK
|
||||||
|
@ -60,7 +60,7 @@ typedef struct BalloonEvalStruct
|
|||||||
#endif
|
#endif
|
||||||
int ts; /* tabstop setting for this buffer */
|
int ts; /* tabstop setting for this buffer */
|
||||||
char_u *msg;
|
char_u *msg;
|
||||||
void (*msgCB)__ARGS((struct BalloonEvalStruct *, int));
|
void (*msgCB)(struct BalloonEvalStruct *, int);
|
||||||
void *clientData; /* For callback */
|
void *clientData; /* For callback */
|
||||||
#if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)
|
#if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)
|
||||||
Dimension screen_width; /* screen width in pixels */
|
Dimension screen_width; /* screen width in pixels */
|
||||||
|
@ -4931,7 +4931,7 @@ gui_mch_post_balloon(beval, mesg)
|
|||||||
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
|
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
|
||||||
void *target; /* ignored, always use s_textArea */
|
void *target; /* ignored, always use s_textArea */
|
||||||
char_u *mesg;
|
char_u *mesg;
|
||||||
void (*mesgCB)__ARGS((BalloonEval *, int));
|
void (*mesgCB)(BalloonEval *, int);
|
||||||
void *clientData;
|
void *clientData;
|
||||||
{
|
{
|
||||||
/* partially stolen from gui_beval.c */
|
/* partially stolen from gui_beval.c */
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char * name;
|
char * name;
|
||||||
int (*func) __ARGS((exarg_T *eap));
|
int (*func)(exarg_T *eap);
|
||||||
char * help;
|
char * help;
|
||||||
char * usage;
|
char * usage;
|
||||||
int cansplit; /* if supports splitting window */
|
int cansplit; /* if supports splitting window */
|
||||||
|
@ -125,9 +125,9 @@
|
|||||||
/* Compatibility hacks over */
|
/* Compatibility hacks over */
|
||||||
|
|
||||||
static PerlInterpreter *perl_interp = NULL;
|
static PerlInterpreter *perl_interp = NULL;
|
||||||
static void xs_init __ARGS((pTHX));
|
static void xs_init(pTHX);
|
||||||
static void VIM_init __ARGS((void));
|
static void VIM_init(void);
|
||||||
EXTERN_C void boot_DynaLoader __ARGS((pTHX_ CV*));
|
EXTERN_C void boot_DynaLoader(pTHX_ CV*);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For dynamic linked perl.
|
* For dynamic linked perl.
|
||||||
|
@ -9,8 +9,8 @@ extern int want_sniff_request;
|
|||||||
extern int sniff_request_waiting;
|
extern int sniff_request_waiting;
|
||||||
extern int sniff_connected;
|
extern int sniff_connected;
|
||||||
extern int fd_from_sniff;
|
extern int fd_from_sniff;
|
||||||
extern void sniff_disconnect __ARGS((int immediately));
|
extern void sniff_disconnect(int immediately);
|
||||||
extern void ProcessSniffRequests __ARGS((void));
|
extern void ProcessSniffRequests(void);
|
||||||
extern void ex_sniff __ARGS((exarg_T *eap));
|
extern void ex_sniff(exarg_T *eap);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -44,8 +44,8 @@ typedef enum {
|
|||||||
|
|
||||||
void nbdbg(char *, ...);
|
void nbdbg(char *, ...);
|
||||||
|
|
||||||
void nbdebug_wait __ARGS((u_int wait_flags, char *wait_var, u_int wait_secs));
|
void nbdebug_wait(u_int wait_flags, char *wait_var, u_int wait_secs);
|
||||||
void nbdebug_log_init __ARGS((char *log_var, char *level_var));
|
void nbdebug_log_init(char *log_var, char *level_var);
|
||||||
|
|
||||||
extern FILE *nb_debug;
|
extern FILE *nb_debug;
|
||||||
extern u_int nb_dlevel; /* nb_debug verbosity level */
|
extern u_int nb_dlevel; /* nb_debug verbosity level */
|
||||||
|
@ -109,7 +109,7 @@ static int mch_gpm_process(void);
|
|||||||
|
|
||||||
static int sysmouse_open(void);
|
static int sysmouse_open(void);
|
||||||
static void sysmouse_close(void);
|
static void sysmouse_close(void);
|
||||||
static RETSIGTYPE sig_sysmouse __ARGS(SIGPROTOARG);
|
static RETSIGTYPE sig_sysmouse SIGPROTOARG;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -190,22 +190,22 @@ static int do_xterm_trace(void);
|
|||||||
static void handle_resize(void);
|
static void handle_resize(void);
|
||||||
|
|
||||||
#if defined(SIGWINCH)
|
#if defined(SIGWINCH)
|
||||||
static RETSIGTYPE sig_winch __ARGS(SIGPROTOARG);
|
static RETSIGTYPE sig_winch SIGPROTOARG;
|
||||||
#endif
|
#endif
|
||||||
#if defined(SIGINT)
|
#if defined(SIGINT)
|
||||||
static RETSIGTYPE catch_sigint __ARGS(SIGPROTOARG);
|
static RETSIGTYPE catch_sigint SIGPROTOARG;
|
||||||
#endif
|
#endif
|
||||||
#if defined(SIGPWR)
|
#if defined(SIGPWR)
|
||||||
static RETSIGTYPE catch_sigpwr __ARGS(SIGPROTOARG);
|
static RETSIGTYPE catch_sigpwr SIGPROTOARG;
|
||||||
#endif
|
#endif
|
||||||
#if defined(SIGALRM) && defined(FEAT_X11) \
|
#if defined(SIGALRM) && defined(FEAT_X11) \
|
||||||
&& defined(FEAT_TITLE) && !defined(FEAT_GUI_GTK)
|
&& defined(FEAT_TITLE) && !defined(FEAT_GUI_GTK)
|
||||||
# define SET_SIG_ALARM
|
# define SET_SIG_ALARM
|
||||||
static RETSIGTYPE sig_alarm __ARGS(SIGPROTOARG);
|
static RETSIGTYPE sig_alarm SIGPROTOARG;
|
||||||
/* volatile because it is used in signal handler sig_alarm(). */
|
/* volatile because it is used in signal handler sig_alarm(). */
|
||||||
static volatile int sig_alarm_called;
|
static volatile int sig_alarm_called;
|
||||||
#endif
|
#endif
|
||||||
static RETSIGTYPE deathtrap __ARGS(SIGPROTOARG);
|
static RETSIGTYPE deathtrap SIGPROTOARG;
|
||||||
|
|
||||||
static void catch_int_signal(void);
|
static void catch_int_signal(void);
|
||||||
static void set_signals(void);
|
static void set_signals(void);
|
||||||
@ -1137,7 +1137,7 @@ deathtrap SIGDEFARG(sigarg)
|
|||||||
* volatile because it is used in signal handler sigcont_handler().
|
* volatile because it is used in signal handler sigcont_handler().
|
||||||
*/
|
*/
|
||||||
static volatile int sigcont_received;
|
static volatile int sigcont_received;
|
||||||
static RETSIGTYPE sigcont_handler __ARGS(SIGPROTOARG);
|
static RETSIGTYPE sigcont_handler SIGPROTOARG;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* signal handler for SIGCONT
|
* signal handler for SIGCONT
|
||||||
@ -6592,10 +6592,10 @@ sig_sysmouse SIGDEFARG(sigarg)
|
|||||||
#endif /* FEAT_SYSMOUSE */
|
#endif /* FEAT_SYSMOUSE */
|
||||||
|
|
||||||
#if defined(FEAT_LIBCALL) || defined(PROTO)
|
#if defined(FEAT_LIBCALL) || defined(PROTO)
|
||||||
typedef char_u * (*STRPROCSTR)__ARGS((char_u *));
|
typedef char_u * (*STRPROCSTR)(char_u *);
|
||||||
typedef char_u * (*INTPROCSTR)__ARGS((int));
|
typedef char_u * (*INTPROCSTR)(int);
|
||||||
typedef int (*STRPROCINT)__ARGS((char_u *));
|
typedef int (*STRPROCINT)(char_u *);
|
||||||
typedef int (*INTPROCINT)__ARGS((int));
|
typedef int (*INTPROCINT)(int);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Call a DLL routine which takes either a string or int param
|
* Call a DLL routine which takes either a string or int param
|
||||||
|
@ -74,10 +74,6 @@
|
|||||||
# define USE_GETCWD
|
# define USE_GETCWD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __ARGS
|
|
||||||
# define __ARGS(x) x
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* always use unlink() to remove files */
|
/* always use unlink() to remove files */
|
||||||
#ifndef PROTO
|
#ifndef PROTO
|
||||||
# ifdef VMS
|
# ifdef VMS
|
||||||
@ -453,7 +449,7 @@ typedef struct dsc$descriptor DESC;
|
|||||||
# ifdef HAVE_RENAME
|
# ifdef HAVE_RENAME
|
||||||
# define mch_rename(src, dst) rename(src, dst)
|
# define mch_rename(src, dst) rename(src, dst)
|
||||||
# else
|
# else
|
||||||
int mch_rename __ARGS((const char *src, const char *dest));
|
int mch_rename(const char *src, const char *dest);
|
||||||
# endif
|
# endif
|
||||||
# ifndef VMS
|
# ifndef VMS
|
||||||
# ifdef __MVS__
|
# ifdef __MVS__
|
||||||
|
@ -84,7 +84,7 @@ int _stricoll(char *a, char *b);
|
|||||||
/* cproto doesn't create a prototype for main() */
|
/* cproto doesn't create a prototype for main() */
|
||||||
int _cdecl
|
int _cdecl
|
||||||
VimMain
|
VimMain
|
||||||
__ARGS((int argc, char **argv));
|
(int argc, char **argv);
|
||||||
static int (_cdecl *pmain)(int, char **);
|
static int (_cdecl *pmain)(int, char **);
|
||||||
|
|
||||||
#ifndef PROTO
|
#ifndef PROTO
|
||||||
|
20
src/proto.h
20
src/proto.h
@ -55,7 +55,7 @@
|
|||||||
# include "winclip.pro"
|
# include "winclip.pro"
|
||||||
# if (defined(__GNUC__) && !defined(__MINGW32__)) \
|
# if (defined(__GNUC__) && !defined(__MINGW32__)) \
|
||||||
|| (defined(__BORLANDC__) && __BORLANDC__ < 0x502)
|
|| (defined(__BORLANDC__) && __BORLANDC__ < 0x502)
|
||||||
extern int _stricoll __ARGS((char *a, char *b));
|
extern int _stricoll(char *a, char *b);
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# ifdef VMS
|
# ifdef VMS
|
||||||
@ -111,25 +111,25 @@ int
|
|||||||
# ifdef __BORLANDC__
|
# ifdef __BORLANDC__
|
||||||
_RTLENTRYF
|
_RTLENTRYF
|
||||||
# endif
|
# endif
|
||||||
smsg __ARGS((char_u *, ...));
|
smsg(char_u *, ...);
|
||||||
|
|
||||||
int
|
int
|
||||||
# ifdef __BORLANDC__
|
# ifdef __BORLANDC__
|
||||||
_RTLENTRYF
|
_RTLENTRYF
|
||||||
# endif
|
# endif
|
||||||
smsg_attr __ARGS((int, char_u *, ...));
|
smsg_attr(int, char_u *, ...);
|
||||||
|
|
||||||
int
|
int
|
||||||
# ifdef __BORLANDC__
|
# ifdef __BORLANDC__
|
||||||
_RTLENTRYF
|
_RTLENTRYF
|
||||||
# endif
|
# endif
|
||||||
vim_snprintf_add __ARGS((char *, size_t, char *, ...));
|
vim_snprintf_add(char *, size_t, char *, ...);
|
||||||
|
|
||||||
int
|
int
|
||||||
# ifdef __BORLANDC__
|
# ifdef __BORLANDC__
|
||||||
_RTLENTRYF
|
_RTLENTRYF
|
||||||
# endif
|
# endif
|
||||||
vim_snprintf __ARGS((char *, size_t, char *, ...));
|
vim_snprintf(char *, size_t, char *, ...);
|
||||||
|
|
||||||
# if defined(HAVE_STDARG_H)
|
# if defined(HAVE_STDARG_H)
|
||||||
int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
|
int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
|
||||||
@ -140,11 +140,11 @@ int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs)
|
|||||||
# include "misc1.pro"
|
# include "misc1.pro"
|
||||||
# include "misc2.pro"
|
# include "misc2.pro"
|
||||||
#ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */
|
#ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */
|
||||||
char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset));
|
char_u *vim_strpbrk(char_u *s, char_u *charset);
|
||||||
#endif
|
#endif
|
||||||
#ifndef HAVE_QSORT
|
#ifndef HAVE_QSORT
|
||||||
/* Use our own qsort(), don't define the prototype when not used. */
|
/* Use our own qsort(), don't define the prototype when not used. */
|
||||||
void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)));
|
void qsort(void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *));
|
||||||
#endif
|
#endif
|
||||||
# include "move.pro"
|
# include "move.pro"
|
||||||
# if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
|
# if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
|
||||||
@ -219,9 +219,9 @@ void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(con
|
|||||||
# include "pty.pro"
|
# include "pty.pro"
|
||||||
# endif
|
# endif
|
||||||
# if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
|
# if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
|
||||||
extern int putenv __ARGS((const char *string)); /* from pty.c */
|
extern int putenv(const char *string); /* from pty.c */
|
||||||
# ifdef USE_VIMPTY_GETENV
|
# ifdef USE_VIMPTY_GETENV
|
||||||
extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */
|
extern char_u *vimpty_getenv(const char_u *string); /* from pty.c */
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# ifdef FEAT_GUI_W16
|
# ifdef FEAT_GUI_W16
|
||||||
@ -241,7 +241,7 @@ extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */
|
|||||||
# ifdef FEAT_GUI_ATHENA
|
# ifdef FEAT_GUI_ATHENA
|
||||||
# include "gui_athena.pro"
|
# include "gui_athena.pro"
|
||||||
# ifdef FEAT_BROWSE
|
# ifdef FEAT_BROWSE
|
||||||
extern char *vim_SelFile __ARGS((Widget toplevel, char *prompt, char *init_path, int (*show_entry)(), int x, int y, guicolor_T fg, guicolor_T bg, guicolor_T scroll_fg, guicolor_T scroll_bg));
|
extern char *vim_SelFile(Widget toplevel, char *prompt, char *init_path, int (*show_entry)(), int x, int y, guicolor_T fg, guicolor_T bg, guicolor_T scroll_fg, guicolor_T scroll_bg);
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# ifdef FEAT_GUI_MAC
|
# ifdef FEAT_GUI_MAC
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
/* if_lua.c */
|
/* if_lua.c */
|
||||||
int lua_enabled __ARGS((int verbose));
|
int lua_enabled(int verbose);
|
||||||
void lua_end __ARGS((void));
|
void lua_end(void);
|
||||||
void ex_lua __ARGS((exarg_T *eap));
|
void ex_lua(exarg_T *eap);
|
||||||
void ex_luado __ARGS((exarg_T *eap));
|
void ex_luado(exarg_T *eap);
|
||||||
void ex_luafile __ARGS((exarg_T *eap));
|
void ex_luafile(exarg_T *eap);
|
||||||
void lua_buffer_free __ARGS((buf_T *buf));
|
void lua_buffer_free(buf_T *o);
|
||||||
void lua_window_free __ARGS((win_T *win));
|
void lua_window_free(win_T *o);
|
||||||
void do_luaeval __ARGS((char_u *str, typval_T *arg, typval_T *rettv));
|
void do_luaeval(char_u *str, typval_T *arg, typval_T *rettv);
|
||||||
int set_ref_in_lua __ARGS((int copyID));
|
int set_ref_in_lua(int copyID);
|
||||||
/* vim: set ft=c : */
|
/* vim: set ft=c : */
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
/* pty.c */
|
/* pty.c */
|
||||||
int OpenPTY __ARGS((char **ttyn));
|
int SetupSlavePTY(int fd);
|
||||||
int SetupSlavePTY __ARGS((int fd));
|
int OpenPTY(char **ttyn);
|
||||||
|
/* vim: set ft=c : */
|
||||||
|
@ -228,7 +228,7 @@ OpenPTY(ttyn)
|
|||||||
{
|
{
|
||||||
int f;
|
int f;
|
||||||
char *name;
|
char *name;
|
||||||
RETSIGTYPE (*sigcld)__ARGS(SIGPROTOARG);
|
RETSIGTYPE (*sigcld) SIGPROTOARG;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SIGCHLD set to SIG_DFL for _getpty() because it may fork() and
|
* SIGCHLD set to SIG_DFL for _getpty() because it may fork() and
|
||||||
|
@ -7226,12 +7226,6 @@ cstrchr(s, c)
|
|||||||
* regsub stuff *
|
* regsub stuff *
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
/* This stuff below really confuses cc on an SGI -- webb */
|
|
||||||
#ifdef __sgi
|
|
||||||
# undef __ARGS
|
|
||||||
# define __ARGS(x) ()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We should define ftpr as a pointer to a function returning a pointer to
|
* We should define ftpr as a pointer to a function returning a pointer to
|
||||||
* a function returning a pointer to a function ...
|
* a function returning a pointer to a function ...
|
||||||
|
@ -2515,7 +2515,7 @@ struct VimMenu
|
|||||||
char_u *actext; /* accelerator text (after TAB) */
|
char_u *actext; /* accelerator text (after TAB) */
|
||||||
int priority; /* Menu order priority */
|
int priority; /* Menu order priority */
|
||||||
#ifdef FEAT_GUI
|
#ifdef FEAT_GUI
|
||||||
void (*cb) __ARGS((vimmenu_T *)); /* Call-back routine */
|
void (*cb)(vimmenu_T *); /* Call-back routine */
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_TOOLBAR
|
#ifdef FEAT_TOOLBAR
|
||||||
char_u *iconfile; /* name of file for icon or NULL */
|
char_u *iconfile; /* name of file for icon or NULL */
|
||||||
|
@ -6335,7 +6335,7 @@ in_id_list(cur_si, list, ssp, contained)
|
|||||||
struct subcommand
|
struct subcommand
|
||||||
{
|
{
|
||||||
char *name; /* subcommand name */
|
char *name; /* subcommand name */
|
||||||
void (*func)__ARGS((exarg_T *, int)); /* function to call */
|
void (*func)(exarg_T *, int); /* function to call */
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct subcommand subcommands[] =
|
static struct subcommand subcommands[] =
|
||||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1200,
|
||||||
/**/
|
/**/
|
||||||
1199,
|
1199,
|
||||||
/**/
|
/**/
|
||||||
|
15
src/vim.h
15
src/vim.h
@ -274,15 +274,6 @@
|
|||||||
# include "os_unix.h" /* bring lots of system header files */
|
# include "os_unix.h" /* bring lots of system header files */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __ARGS
|
|
||||||
# define __ARGS(x) x
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* __ARGS and __PARMS are the same thing. */
|
|
||||||
#ifndef __PARMS
|
|
||||||
# define __PARMS(x) __ARGS(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter
|
/* Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter
|
||||||
* can be used to check for mistakes. */
|
* can be used to check for mistakes. */
|
||||||
#ifdef HAVE_ATTRIBUTE_UNUSED
|
#ifdef HAVE_ATTRIBUTE_UNUSED
|
||||||
@ -1641,7 +1632,7 @@ typedef void *vim_acl_T; /* dummy to pass an ACL to a function */
|
|||||||
* Include a prototype for mch_memmove(), it may not be in alloc.pro.
|
* Include a prototype for mch_memmove(), it may not be in alloc.pro.
|
||||||
*/
|
*/
|
||||||
#ifdef VIM_MEMMOVE
|
#ifdef VIM_MEMMOVE
|
||||||
void mch_memmove __ARGS((void *, void *, size_t));
|
void mch_memmove(void *, void *, size_t);
|
||||||
#else
|
#else
|
||||||
# ifndef mch_memmove
|
# ifndef mch_memmove
|
||||||
# define mch_memmove(to, from, len) memmove(to, from, len)
|
# define mch_memmove(to, from, len) memmove(to, from, len)
|
||||||
@ -1660,7 +1651,7 @@ void mch_memmove __ARGS((void *, void *, size_t));
|
|||||||
#ifdef HAVE_MEMSET
|
#ifdef HAVE_MEMSET
|
||||||
# define vim_memset(ptr, c, size) memset((ptr), (c), (size))
|
# define vim_memset(ptr, c, size) memset((ptr), (c), (size))
|
||||||
#else
|
#else
|
||||||
void *vim_memset __ARGS((void *, int, size_t));
|
void *vim_memset(void *, int, size_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MEMCMP
|
#ifdef HAVE_MEMCMP
|
||||||
@ -1669,7 +1660,7 @@ void *vim_memset __ARGS((void *, int, size_t));
|
|||||||
# ifdef HAVE_BCMP
|
# ifdef HAVE_BCMP
|
||||||
# define vim_memcmp(p1, p2, len) bcmp((p1), (p2), (len))
|
# define vim_memcmp(p1, p2, len) bcmp((p1), (p2), (len))
|
||||||
# else
|
# else
|
||||||
int vim_memcmp __ARGS((void *, void *, size_t));
|
int vim_memcmp(void *, void *, size_t);
|
||||||
# define VIM_MEMCMP
|
# define VIM_MEMCMP
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -14,15 +14,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
/* reduced def from Vim.h */
|
|
||||||
#ifndef __ARGS
|
|
||||||
# if defined(__STDC__) || defined(__GNUC__) || defined(WIN3264)
|
|
||||||
# define __ARGS(x) x
|
|
||||||
# else
|
|
||||||
# define __ARGS(x) ()
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "xpm_w32.h"
|
#include "xpm_w32.h"
|
||||||
|
|
||||||
/* Engage Windows support in libXpm */
|
/* Engage Windows support in libXpm */
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef XPM_W32__H
|
#ifndef XPM_W32__H
|
||||||
int LoadXpmImage __ARGS((char *filename, HBITMAP *hImage, HBITMAP *hShape));
|
int LoadXpmImage(char *filename, HBITMAP *hImage, HBITMAP *hShape);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user