Skip to content

Commit af902a0

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents b9777ed + 937204a commit af902a0

113 files changed

Lines changed: 9179 additions & 13810 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

runtime/doc/doctags.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
#define LINELEN 200
1515

1616
int
17-
main(argc, argv)
18-
int argc;
19-
char **argv;
17+
main(int argc, char **argv)
2018
{
2119
char line[LINELEN];
2220
char *p1, *p2;

runtime/tools/ccfilter.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ const char USAGE[] =
8585

8686

8787
int ShowUsage( char *szError )
88-
{ int i;
88+
{
89+
int i;
8990

9091
fprintf( stderr, USAGE );
9192

@@ -101,7 +102,8 @@ int ShowUsage( char *szError )
101102
return 0;
102103
}
103104

104-
char *echogets(char *s, int echo) {
105+
char *echogets(char *s, int echo)
106+
{
105107
char * const retval=fgets(s, LINELENGTH, stdin);
106108
if (echo!=0 && retval!=NULL) {
107109
fputs(retval, stderr);

runtime/tools/xcmdsrv_client.c

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ static int got_x_error = FALSE;
9494
*/
9595

9696
char *
97-
sendToVim(dpy, name, cmd, asKeys, code)
98-
Display *dpy; /* Where to send. */
99-
char *name; /* Where to send. */
100-
char *cmd; /* What to send. */
101-
int asKeys; /* Interpret as keystrokes or expr ? */
102-
int *code; /* Return code. 0 => OK */
97+
sendToVim(
98+
Display *dpy, /* Where to send. */
99+
char *name, /* Where to send. */
100+
char *cmd, /* What to send. */
101+
int asKeys, /* Interpret as keystrokes or expr ? */
102+
int *code) /* Return code. 0 => OK */
103103
{
104104
Window w;
105105
Atom *plist;
@@ -245,8 +245,7 @@ sendToVim(dpy, name, cmd, asKeys, code)
245245
*/
246246

247247
static int
248-
SendInit(dpy)
249-
Display *dpy;
248+
SendInit(Display *dpy)
250249
{
251250
XErrorHandler old_handler;
252251

@@ -289,11 +288,11 @@ SendInit(dpy)
289288
*/
290289

291290
static Window
292-
LookupName(dpy, name, delete, loose)
293-
Display *dpy; /* Display whose registry to check. */
294-
char *name; /* Name of an interpreter. */
295-
int delete; /* If non-zero, delete info about name. */
296-
char **loose; /* Do another search matching -999 if not found
291+
LookupName(
292+
Display *dpy, /* Display whose registry to check. */
293+
char *name, /* Name of an interpreter. */
294+
int delete, /* If non-zero, delete info about name. */
295+
char **loose) /* Do another search matching -999 if not found
297296
Return result here if a match is found */
298297
{
299298
unsigned char *regProp, *entry;
@@ -396,11 +395,11 @@ LookupName(dpy, name, delete, loose)
396395
}
397396

398397
static char *
399-
SendEventProc(dpy, eventPtr, expected, code)
400-
Display *dpy;
401-
XEvent *eventPtr; /* Information about event. */
402-
int expected; /* The one were waiting for */
403-
int *code; /* Return code. 0 => OK */
398+
SendEventProc(
399+
Display *dpy,
400+
XEvent *eventPtr, /* Information about event. */
401+
int expected, /* The one were waiting for */
402+
int *code) /* Return code. 0 => OK */
404403
{
405404
unsigned char *propInfo;
406405
unsigned char *p;
@@ -535,13 +534,13 @@ SendEventProc(dpy, eventPtr, expected, code)
535534
*/
536535

537536
static int
538-
AppendPropCarefully(dpy, window, property, value, length)
539-
Display *dpy; /* Display on which to operate. */
540-
Window window; /* Window whose property is to
537+
AppendPropCarefully(
538+
Display *dpy, /* Display on which to operate. */
539+
Window window, /* Window whose property is to
541540
* be modified. */
542-
Atom property; /* Name of property. */
543-
char *value; /* Characters to append to property. */
544-
int length; /* How much to append */
541+
Atom property, /* Name of property. */
542+
char *value, /* Characters to append to property. */
543+
int length) /* How much to append */
545544
{
546545
XErrorHandler old_handler;
547546

@@ -560,9 +559,7 @@ AppendPropCarefully(dpy, window, property, value, length)
560559
*/
561560
/* ARGSUSED */
562561
static int
563-
x_error_check(dpy, error_event)
564-
Display *dpy;
565-
XErrorEvent *error_event;
562+
x_error_check(Display *dpy, XErrorEvent *error_event)
566563
{
567564
got_x_error = TRUE;
568565
return 0;
@@ -573,8 +570,7 @@ x_error_check(dpy, error_event)
573570
* Actually just checks if the name ends in a digit.
574571
*/
575572
static int
576-
IsSerialName(str)
577-
char *str;
573+
IsSerialName(char *str)
578574
{
579575
int len = strlen(str);
580576

src/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,21 +1678,22 @@ PRO_AUTO = \
16781678
hangulin.pro \
16791679
if_cscope.pro \
16801680
if_lua.pro \
1681+
if_mzsch.pro \
16811682
if_python.pro \
16821683
if_python3.pro \
16831684
if_ruby.pro \
16841685
if_xcmdsrv.pro \
16851686
json.pro \
16861687
main.pro \
16871688
mark.pro \
1689+
mbyte.pro \
16881690
memfile.pro \
16891691
memline.pro \
16901692
menu.pro \
16911693
message.pro \
16921694
misc1.pro \
16931695
misc2.pro \
16941696
move.pro \
1695-
mbyte.pro \
16961697
normal.pro \
16971698
ops.pro \
16981699
option.pro \

src/arabic.c

Lines changed: 28 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ static int A_is_special(int c);
4343
* Returns True if c is an ISO-8859-6 shaped ARABIC letter (user entered)
4444
*/
4545
static int
46-
A_is_a(cur_c)
47-
int cur_c;
46+
A_is_a(int cur_c)
4847
{
4948
switch (cur_c)
5049
{
@@ -96,8 +95,7 @@ A_is_a(cur_c)
9695
* Returns True if c is an Isolated Form-B ARABIC letter
9796
*/
9897
static int
99-
A_is_s(cur_c)
100-
int cur_c;
98+
A_is_s(int cur_c)
10199
{
102100
switch (cur_c)
103101
{
@@ -148,8 +146,7 @@ A_is_s(cur_c)
148146
* Returns True if c is a Final shape of an ARABIC letter
149147
*/
150148
static int
151-
A_is_f(cur_c)
152-
int cur_c;
149+
A_is_f(int cur_c)
153150
{
154151
switch (cur_c)
155152
{
@@ -202,8 +199,7 @@ A_is_f(cur_c)
202199
* Change shape - from ISO-8859-6/Isolated to Form-B Isolated
203200
*/
204201
static int
205-
chg_c_a2s(cur_c)
206-
int cur_c;
202+
chg_c_a2s(int cur_c)
207203
{
208204
int tempc;
209205

@@ -332,8 +328,7 @@ chg_c_a2s(cur_c)
332328
* Change shape - from ISO-8859-6/Isolated to Initial
333329
*/
334330
static int
335-
chg_c_a2i(cur_c)
336-
int cur_c;
331+
chg_c_a2i(int cur_c)
337332
{
338333
int tempc;
339334

@@ -462,8 +457,7 @@ chg_c_a2i(cur_c)
462457
* Change shape - from ISO-8859-6/Isolated to Medial
463458
*/
464459
static int
465-
chg_c_a2m(cur_c)
466-
int cur_c;
460+
chg_c_a2m(int cur_c)
467461
{
468462
int tempc;
469463

@@ -592,8 +586,7 @@ chg_c_a2m(cur_c)
592586
* Change shape - from ISO-8859-6/Isolated to final
593587
*/
594588
static int
595-
chg_c_a2f(cur_c)
596-
int cur_c;
589+
chg_c_a2f(int cur_c)
597590
{
598591
int tempc;
599592

@@ -732,8 +725,7 @@ chg_c_a2f(cur_c)
732725
* Change shape - from Initial to Medial
733726
*/
734727
static int
735-
chg_c_i2m(cur_c)
736-
int cur_c;
728+
chg_c_i2m(int cur_c)
737729
{
738730
int tempc;
739731

@@ -820,8 +812,7 @@ chg_c_i2m(cur_c)
820812
* Change shape - from Final to Medial
821813
*/
822814
static int
823-
chg_c_f2m(cur_c)
824-
int cur_c;
815+
chg_c_f2m(int cur_c)
825816
{
826817
int tempc;
827818

@@ -930,8 +921,7 @@ chg_c_f2m(cur_c)
930921
* Change shape - from Combination (2 char) to an Isolated
931922
*/
932923
static int
933-
chg_c_laa2i(hid_c)
934-
int hid_c;
924+
chg_c_laa2i(int hid_c)
935925
{
936926
int tempc;
937927

@@ -961,8 +951,7 @@ chg_c_laa2i(hid_c)
961951
* Change shape - from Combination-Isolated to Final
962952
*/
963953
static int
964-
chg_c_laa2f(hid_c)
965-
int hid_c;
954+
chg_c_laa2f(int hid_c)
966955
{
967956
int tempc;
968957

@@ -991,8 +980,7 @@ chg_c_laa2f(hid_c)
991980
* Do "half-shaping" on character "c". Return zero if no shaping.
992981
*/
993982
static int
994-
half_shape(c)
995-
int c;
983+
half_shape(int c)
996984
{
997985
if (A_is_a(c))
998986
return chg_c_a2i(c);
@@ -1011,13 +999,13 @@ half_shape(c)
1011999
* in: "next_c" is the next character (not shaped).
10121000
*/
10131001
int
1014-
arabic_shape(c, ccp, c1p, prev_c, prev_c1, next_c)
1015-
int c;
1016-
int *ccp;
1017-
int *c1p;
1018-
int prev_c;
1019-
int prev_c1;
1020-
int next_c;
1002+
arabic_shape(
1003+
int c,
1004+
int *ccp,
1005+
int *c1p,
1006+
int prev_c,
1007+
int prev_c1,
1008+
int next_c)
10211009
{
10221010
int curr_c;
10231011
int shape_c;
@@ -1082,9 +1070,9 @@ arabic_shape(c, ccp, c1p, prev_c, prev_c1, next_c)
10821070
* A_firstc_laa returns first character of LAA combination if it exists
10831071
*/
10841072
static int
1085-
A_firstc_laa(c, c1)
1086-
int c; /* base character */
1087-
int c1; /* first composing character */
1073+
A_firstc_laa(
1074+
int c, /* base character */
1075+
int c1) /* first composing character */
10881076
{
10891077
if (c1 != NUL && c == a_LAM && !A_is_harakat(c1))
10901078
return c1;
@@ -1097,8 +1085,7 @@ A_firstc_laa(c, c1)
10971085
* (harakat/tanween)
10981086
*/
10991087
static int
1100-
A_is_harakat(c)
1101-
int c;
1088+
A_is_harakat(int c)
11021089
{
11031090
return (c >= a_FATHATAN && c <= a_SUKUN);
11041091
}
@@ -1109,8 +1096,7 @@ A_is_harakat(c)
11091096
* (alphabet/number/punctuation)
11101097
*/
11111098
static int
1112-
A_is_iso(c)
1113-
int c;
1099+
A_is_iso(int c)
11141100
{
11151101
return ((c >= a_HAMZA && c <= a_GHAIN)
11161102
|| (c >= a_TATWEEL && c <= a_HAMZA_BELOW)
@@ -1123,8 +1109,7 @@ A_is_iso(c)
11231109
* (alphabet/number/punctuation)
11241110
*/
11251111
static int
1126-
A_is_formb(c)
1127-
int c;
1112+
A_is_formb(int c)
11281113
{
11291114
return ((c >= a_s_FATHATAN && c <= a_s_DAMMATAN)
11301115
|| c == a_s_KASRATAN
@@ -1137,8 +1122,7 @@ A_is_formb(c)
11371122
* A_is_ok returns TRUE if 'c' is an Arabic 10646 (8859-6 or Form-B)
11381123
*/
11391124
static int
1140-
A_is_ok(c)
1141-
int c;
1125+
A_is_ok(int c)
11421126
{
11431127
return (A_is_iso(c) || A_is_formb(c));
11441128
}
@@ -1149,8 +1133,7 @@ A_is_ok(c)
11491133
* with some exceptions/exclusions
11501134
*/
11511135
static int
1152-
A_is_valid(c)
1153-
int c;
1136+
A_is_valid(int c)
11541137
{
11551138
return (A_is_ok(c) && !A_is_special(c));
11561139
}
@@ -1161,8 +1144,7 @@ A_is_valid(c)
11611144
* Specials don't adhere to most of the rules.
11621145
*/
11631146
static int
1164-
A_is_special(c)
1165-
int c;
1147+
A_is_special(int c)
11661148
{
11671149
return (c == a_HAMZA || c == a_s_HAMZA);
11681150
}

src/auto/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10175,7 +10175,7 @@ fi
1017510175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1017610176
fi
1017710177

10178-
for ac_header in stdarg.h stdint.h stdlib.h string.h \
10178+
for ac_header in stdint.h stdlib.h string.h \
1017910179
sys/select.h sys/utsname.h termcap.h fcntl.h \
1018010180
sgtty.h sys/ioctl.h sys/time.h sys/types.h \
1018110181
termio.h iconv.h inttypes.h langinfo.h math.h \

0 commit comments

Comments
 (0)