Mercurial > vim
comparison src/globals.h @ 7807:1a5d34492798 v7.4.1200
commit https://github.com/vim/vim/commit/d99df423c559d85c17779b3685426c489554908c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 29 23:20:40 2016 +0100
patch 7.4.1200
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jan 2016 23:30:06 +0100 |
parents | bce3b5ddb393 |
children | 10f17a228661 |
comparison
equal
deleted
inserted
replaced
7806:eb2af74e899a | 7807:1a5d34492798 |
---|---|
843 * three possible values: latin_ (8-bit), utfc_ or utf_ (utf-8) and dbcs_ | 843 * three possible values: latin_ (8-bit), utfc_ or utf_ (utf-8) and dbcs_ |
844 * (DBCS). | 844 * (DBCS). |
845 * The value is set in mb_init(); | 845 * The value is set in mb_init(); |
846 */ | 846 */ |
847 /* length of char in bytes, including following composing chars */ | 847 /* length of char in bytes, including following composing chars */ |
848 EXTERN int (*mb_ptr2len) __ARGS((char_u *p)) INIT(= latin_ptr2len); | 848 EXTERN int (*mb_ptr2len)(char_u *p) INIT(= latin_ptr2len); |
849 /* idem, with limit on string length */ | 849 /* idem, with limit on string length */ |
850 EXTERN int (*mb_ptr2len_len) __ARGS((char_u *p, int size)) INIT(= latin_ptr2len_len); | 850 EXTERN int (*mb_ptr2len_len)(char_u *p, int size) INIT(= latin_ptr2len_len); |
851 /* byte length of char */ | 851 /* byte length of char */ |
852 EXTERN int (*mb_char2len) __ARGS((int c)) INIT(= latin_char2len); | 852 EXTERN int (*mb_char2len)(int c) INIT(= latin_char2len); |
853 /* convert char to bytes, return the length */ | 853 /* convert char to bytes, return the length */ |
854 EXTERN int (*mb_char2bytes) __ARGS((int c, char_u *buf)) INIT(= latin_char2bytes); | 854 EXTERN int (*mb_char2bytes)(int c, char_u *buf) INIT(= latin_char2bytes); |
855 EXTERN int (*mb_ptr2cells) __ARGS((char_u *p)) INIT(= latin_ptr2cells); | 855 EXTERN int (*mb_ptr2cells)(char_u *p) INIT(= latin_ptr2cells); |
856 EXTERN int (*mb_ptr2cells_len) __ARGS((char_u *p, int size)) INIT(= latin_ptr2cells_len); | 856 EXTERN int (*mb_ptr2cells_len)(char_u *p, int size) INIT(= latin_ptr2cells_len); |
857 EXTERN int (*mb_char2cells) __ARGS((int c)) INIT(= latin_char2cells); | 857 EXTERN int (*mb_char2cells)(int c) INIT(= latin_char2cells); |
858 EXTERN int (*mb_off2cells) __ARGS((unsigned off, unsigned max_off)) INIT(= latin_off2cells); | 858 EXTERN int (*mb_off2cells)(unsigned off, unsigned max_off) INIT(= latin_off2cells); |
859 EXTERN int (*mb_ptr2char) __ARGS((char_u *p)) INIT(= latin_ptr2char); | 859 EXTERN int (*mb_ptr2char)(char_u *p) INIT(= latin_ptr2char); |
860 EXTERN int (*mb_head_off) __ARGS((char_u *base, char_u *p)) INIT(= latin_head_off); | 860 EXTERN int (*mb_head_off)(char_u *base, char_u *p) INIT(= latin_head_off); |
861 | 861 |
862 # if defined(USE_ICONV) && defined(DYNAMIC_ICONV) | 862 # if defined(USE_ICONV) && defined(DYNAMIC_ICONV) |
863 /* Pointers to functions and variables to be loaded at runtime */ | 863 /* Pointers to functions and variables to be loaded at runtime */ |
864 EXTERN size_t (*iconv) (iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); | 864 EXTERN size_t (*iconv) (iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); |
865 EXTERN iconv_t (*iconv_open) (const char *tocode, const char *fromcode); | 865 EXTERN iconv_t (*iconv_open) (const char *tocode, const char *fromcode); |