mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +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
14
src/proto.h
14
src/proto.h
@@ -30,16 +30,16 @@
|
||||
/* These prototypes cannot be produced automatically and conflict with
|
||||
* the old-style prototypes in message.c. */
|
||||
int
|
||||
smsg __ARGS((char_u *, ...));
|
||||
smsg(char_u *, ...);
|
||||
|
||||
int
|
||||
smsg_attr __ARGS((int, char_u *, ...));
|
||||
smsg_attr(int, char_u *, ...);
|
||||
|
||||
int
|
||||
vim_snprintf_add __ARGS((char *, size_t, char *, ...));
|
||||
vim_snprintf_add(char *, size_t, char *, ...);
|
||||
|
||||
int
|
||||
vim_snprintf __ARGS((char *, size_t, char *, ...));
|
||||
vim_snprintf(char *, size_t, char *, ...);
|
||||
|
||||
# if defined(HAVE_STDARG_H)
|
||||
int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
|
||||
@@ -47,12 +47,12 @@ int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs)
|
||||
# endif
|
||||
|
||||
#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
|
||||
#ifndef HAVE_QSORT
|
||||
/* 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
|
||||
|
||||
/* Ugly solution for "BalloonEval" not being defined while it's used in some
|
||||
|
Reference in New Issue
Block a user