diff options
author | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2014-03-02 14:11:35 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-02 14:19:59 -0300 |
commit | d9283c4927cc5f926fa796acc2568610bd9a80d6 (patch) | |
tree | ee22db97987af38c538d1bd6501a384203579949 /src/mbyte.c | |
parent | 2bd6d444033b5746595713f4d037de135379a23e (diff) | |
download | rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.gz rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.bz2 rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.zip |
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.
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 8a1fbef901..2ebf3cd98f 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -101,16 +101,16 @@ -static int enc_canon_search __ARGS((char_u *name)); -static int dbcs_char2len __ARGS((int c)); -static int dbcs_char2bytes __ARGS((int c, char_u *buf)); -static int dbcs_ptr2len __ARGS((char_u *p)); -static int dbcs_ptr2len_len __ARGS((char_u *p, int size)); -static int utf_ptr2cells_len __ARGS((char_u *p, int size)); -static int dbcs_char2cells __ARGS((int c)); -static int dbcs_ptr2cells_len __ARGS((char_u *p, int size)); -static int dbcs_ptr2char __ARGS((char_u *p)); -static int utf_safe_read_char_adv __ARGS((char_u **s, size_t *n)); +static int enc_canon_search(char_u *name); +static int dbcs_char2len(int c); +static int dbcs_char2bytes(int c, char_u *buf); +static int dbcs_ptr2len(char_u *p); +static int dbcs_ptr2len_len(char_u *p, int size); +static int utf_ptr2cells_len(char_u *p, int size); +static int dbcs_char2cells(int c); +static int dbcs_ptr2cells_len(char_u *p, int size); +static int dbcs_ptr2char(char_u *p); +static int utf_safe_read_char_adv(char_u **s, size_t *n); /* * Lookup table to quickly get the length in bytes of a UTF-8 character from @@ -953,7 +953,7 @@ struct interval { long first; long last; }; -static int intable __ARGS((struct interval *table, size_t size, int c)); +static int intable(struct interval *table, size_t size, int c); /* * Return TRUE if "c" is in "table[size / sizeof(struct interval)]". @@ -2405,8 +2405,8 @@ static convertStruct foldCase[] = {0x10400,0x10427,1,40} }; -static int utf_convert __ARGS((int a, convertStruct table[], int tableSize)); -static int utf_strnicmp __ARGS((char_u *s1, char_u *s2, size_t n1, size_t n2)); +static int utf_convert(int a, convertStruct table[], int tableSize); +static int utf_strnicmp(char_u *s1, char_u *s2, size_t n1, size_t n2); /* * Generic conversion function for case operations. @@ -3366,7 +3366,7 @@ int mb_fix_col(int col, int row) return col; } -static int enc_alias_search __ARGS((char_u *name)); +static int enc_alias_search(char_u *name); /* * Skip the Vim specific head of a 'encoding' name. @@ -3526,8 +3526,8 @@ char_u * enc_locale() { # if defined(USE_ICONV) || defined(PROTO) static char_u * -iconv_string __ARGS((vimconv_T *vcp, char_u *str, int slen, int *unconvlenp, - int *resultlenp)); +iconv_string(vimconv_T *vcp, char_u *str, int slen, int *unconvlenp, + int *resultlenp); /* * Call iconv_open() with a check if iconv() works properly (there are broken |