mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +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
@@ -645,28 +645,26 @@ EXTERN vimconv_T output_conv; /* type of output conversion */
|
||||
* The value is set in mb_init();
|
||||
*/
|
||||
/* 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 */
|
||||
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 */
|
||||
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 */
|
||||
EXTERN int (*mb_char2bytes)__ARGS((int c, char_u *buf)) INIT(= latin_char2bytes);
|
||||
EXTERN int (*mb_ptr2cells)__ARGS((char_u *p)) INIT(= latin_ptr2cells);
|
||||
EXTERN int (*mb_ptr2cells_len)__ARGS((char_u *p, int size)) INIT(
|
||||
EXTERN int (*mb_char2bytes)(int c, char_u *buf) INIT(= latin_char2bytes);
|
||||
EXTERN int (*mb_ptr2cells)(char_u *p) INIT(= latin_ptr2cells);
|
||||
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_off2cells)__ARGS((unsigned off, unsigned max_off)) INIT(
|
||||
EXTERN int (*mb_char2cells)(int c) INIT(= latin_char2cells);
|
||||
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_head_off)__ARGS((char_u *base, char_u *p)) INIT(
|
||||
= latin_head_off);
|
||||
EXTERN int (*mb_ptr2char)(char_u *p) INIT(= latin_ptr2char);
|
||||
EXTERN int (*mb_head_off)(char_u *base, char_u *p) INIT(= latin_head_off);
|
||||
|
||||
# if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
||||
/* Pointers to functions and variables to be loaded at runtime */
|
||||
EXTERN size_t (*iconv)(iconv_t cd, const char **inbuf, size_t *inbytesleft,
|
||||
char **outbuf, size_t *outbytesleft);
|
||||
char **outbuf, size_t *outbytesleft);
|
||||
EXTERN iconv_t (*iconv_open)(const char *tocode, const char *fromcode);
|
||||
EXTERN int (*iconv_close)(iconv_t cd);
|
||||
EXTERN int (*iconvctl)(iconv_t cd, int request, void *argument);
|
||||
|
Reference in New Issue
Block a user