Mercurial > vim
comparison src/hangulin.c @ 7803:37c929c4a073 v7.4.1198
commit https://github.com/vim/vim/commit/92b8b2d307e34117f146319872010b0ccc9d2713
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 29 22:36:45 2016 +0100
patch 7.4.1198
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
Also remove use of HAVE_STDARG_H.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jan 2016 22:45:06 +0100 |
parents | 310925215e17 |
children | bcef391c101c |
comparison
equal
deleted
inserted
replaced
7802:d9180d8cfe40 | 7803:37c929c4a073 |
---|---|
33 static int sp=0; | 33 static int sp=0; |
34 static char_u stack[20] = {0}; | 34 static char_u stack[20] = {0}; |
35 static int last_l = -1, last_ll = -1; | 35 static int last_l = -1, last_ll = -1; |
36 static int hangul_keyboard_type = HANGUL_DEFAULT_KEYBOARD; | 36 static int hangul_keyboard_type = HANGUL_DEFAULT_KEYBOARD; |
37 | 37 |
38 static void convert_ks_to_3 __ARGS((const char_u *src, int *fp, int *mp, int *lp)); | 38 static void convert_ks_to_3(const char_u *src, int *fp, int *mp, int *lp); |
39 static int convert_3_to_ks __ARGS((int fv, int mv, int lv, char_u *des)); | 39 static int convert_3_to_ks(int fv, int mv, int lv, char_u *des); |
40 static int hangul_automata2 __ARGS((char_u *buf, unsigned int *c)); | 40 static int hangul_automata2(char_u *buf, unsigned int *c); |
41 static int hangul_automata3 __ARGS((char_u *buf, unsigned int *c)); | 41 static int hangul_automata3(char_u *buf, unsigned int *c); |
42 | 42 |
43 #define push(x) {stack[ sp++ ] = *(x); stack[sp++] = *((x)+1);} | 43 #define push(x) {stack[ sp++ ] = *(x); stack[sp++] = *((x)+1);} |
44 #define pop(x) {*((x) + 1) = stack[--sp]; *(x) = stack[--sp];} | 44 #define pop(x) {*((x) + 1) = stack[--sp]; *(x) = stack[--sp];} |
45 #define query(x) {*((x) + 1) = stack[sp - 1]; *(x) = stack[sp - 2];} | 45 #define query(x) {*((x) + 1) = stack[sp - 1]; *(x) = stack[sp - 2];} |
46 | 46 |