mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
Remove __ARGS macro. Close #205
This is a squash of all commits sent to #81. - Remove unused undef of __ARGS. - Fix mch_rename declaration. - Follow changes related to moved & extracted files. - Properly indent function declarations of getchar.h and quickfix.c.
This commit is contained in:

committed by
Thiago de Arruda

parent
2bd6d44403
commit
d9283c4927
42
src/term.c
42
src/term.c
@@ -85,32 +85,32 @@ struct builtin_term {
|
||||
/* start of keys that are not directly used by Vim but can be mapped */
|
||||
#define BT_EXTRA_KEYS 0x101
|
||||
|
||||
static struct builtin_term *find_builtin_term __ARGS((char_u *name));
|
||||
static void parse_builtin_tcap __ARGS((char_u *s));
|
||||
static void term_color __ARGS((char_u *s, int n));
|
||||
static void gather_termleader __ARGS((void));
|
||||
static void req_codes_from_term __ARGS((void));
|
||||
static void req_more_codes_from_term __ARGS((void));
|
||||
static void got_code_from_term __ARGS((char_u *code, int len));
|
||||
static void check_for_codes_from_term __ARGS((void));
|
||||
static struct builtin_term *find_builtin_term(char_u *name);
|
||||
static void parse_builtin_tcap(char_u *s);
|
||||
static void term_color(char_u *s, int n);
|
||||
static void gather_termleader(void);
|
||||
static void req_codes_from_term(void);
|
||||
static void req_more_codes_from_term(void);
|
||||
static void got_code_from_term(char_u *code, int len);
|
||||
static void check_for_codes_from_term(void);
|
||||
#if defined(FEAT_GUI) \
|
||||
|| (defined(FEAT_MOUSE) && (!defined(UNIX) || defined(FEAT_MOUSE_XTERM) \
|
||||
|| defined(FEAT_MOUSE_GPM) || defined(FEAT_SYSMOUSE)))
|
||||
static int get_bytes_from_buf __ARGS((char_u *, char_u *, int));
|
||||
static int get_bytes_from_buf(char_u *, char_u *, int);
|
||||
#endif
|
||||
static void del_termcode_idx __ARGS((int idx));
|
||||
static int term_is_builtin __ARGS((char_u *name));
|
||||
static int term_7to8bit __ARGS((char_u *p));
|
||||
static void switch_to_8bit __ARGS((void));
|
||||
static void del_termcode_idx(int idx);
|
||||
static int term_is_builtin(char_u *name);
|
||||
static int term_7to8bit(char_u *p);
|
||||
static void switch_to_8bit(void);
|
||||
|
||||
#ifdef HAVE_TGETENT
|
||||
static char_u *tgetent_error __ARGS((char_u *, char_u *));
|
||||
static char_u *tgetent_error(char_u *, char_u *);
|
||||
|
||||
/*
|
||||
* Here is our own prototype for tgetstr(), any prototypes from the include
|
||||
* files have been disabled by the define at the start of this file.
|
||||
*/
|
||||
char *tgetstr __ARGS((char *, char **));
|
||||
char *tgetstr(char *, char **);
|
||||
|
||||
/* Change this to "if 1" to debug what happens with termresponse. */
|
||||
# define LOG_TR(msg)
|
||||
@@ -149,7 +149,7 @@ char *UP, *BC, PC;
|
||||
|
||||
# define TGETSTR(s, p) vim_tgetstr((s), (p))
|
||||
# define TGETENT(b, t) tgetent((char *)(b), (char *)(t))
|
||||
static char_u *vim_tgetstr __ARGS((char *s, char_u **pp));
|
||||
static char_u *vim_tgetstr(char *s, char_u **pp);
|
||||
#endif /* HAVE_TGETENT */
|
||||
|
||||
static int detected_8bit = FALSE; /* detected 8-bit terminal */
|
||||
@@ -1233,7 +1233,7 @@ static void parse_builtin_tcap(char_u *term)
|
||||
}
|
||||
}
|
||||
}
|
||||
static void set_color_count __ARGS((int nr));
|
||||
static void set_color_count(int nr);
|
||||
|
||||
/*
|
||||
* Set number of colors.
|
||||
@@ -1963,7 +1963,7 @@ char_u *tltoa(unsigned long i)
|
||||
* minimal tgoto() implementation.
|
||||
* no padding and we only parse for %i %d and %+char
|
||||
*/
|
||||
static char *tgoto __ARGS((char *, int, int));
|
||||
static char *tgoto(char *, int, int);
|
||||
|
||||
static char *tgoto(char *cm, int x, int y)
|
||||
{
|
||||
@@ -2086,7 +2086,7 @@ void out_char(unsigned c)
|
||||
out_flush();
|
||||
}
|
||||
|
||||
static void out_char_nf __ARGS((unsigned));
|
||||
static void out_char_nf(unsigned);
|
||||
|
||||
/*
|
||||
* out_char_nf(c): like out_char(), but don't flush when p_wd is set
|
||||
@@ -2363,7 +2363,7 @@ void add_long_to_buf(long_u val, char_u *dst)
|
||||
}
|
||||
}
|
||||
|
||||
static int get_long_from_buf __ARGS((char_u *buf, long_u *val));
|
||||
static int get_long_from_buf(char_u *buf, long_u *val);
|
||||
|
||||
/*
|
||||
* Interpret the next string of bytes in buf as a long integer, with the most
|
||||
@@ -2951,7 +2951,7 @@ static struct termcode {
|
||||
static int tc_max_len = 0; /* number of entries that termcodes[] can hold */
|
||||
static int tc_len = 0; /* current number of entries in termcodes[] */
|
||||
|
||||
static int termcode_star __ARGS((char_u *code, int len));
|
||||
static int termcode_star(char_u *code, int len);
|
||||
|
||||
void clear_termcodes(void) {
|
||||
while (tc_len > 0)
|
||||
|
Reference in New Issue
Block a user