4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Compiler warnings when using -Wextra
12 Solution: Add UNUSED and type casts.
13 Files: src/eval.c, src/ex_docmd.c, src/ex_eval.c, src/ex_getln.c,
14 src/fileio.c, src/hardcopy.c, src/if_cscope.c, src/if_xcmdsrv.c,
15 src/farsi.c, src/mark.c, src/menu.c
18 *** ../vim-7.2.176/src/eval.c 2009-05-15 21:31:11.000000000 +0200
19 --- src/eval.c 2009-05-16 16:58:30.000000000 +0200
22 * Function given to ExpandGeneric() to obtain the list of user defined
23 * (global/buffer/window/built-in) variable names.
27 get_user_var_name(xp, idx)
32 * Function given to ExpandGeneric() to obtain the list of internal or
33 * user defined variable or function names.
37 get_expr_name(xp, idx)
43 * "byte2line(byte)" function
47 f_byte2line(argvars, rettv)
54 * "byte2line(byte)" function
57 f_byte2line(argvars, rettv)
58 ! typval_T *argvars UNUSED;
65 * "byteidx()" function
69 f_byteidx(argvars, rettv)
75 f_clearmatches(argvars, rettv)
76 typval_T *argvars UNUSED;
79 #ifdef FEAT_SEARCH_EXTRA
80 clear_matches(curwin);
83 f_clearmatches(argvars, rettv)
84 typval_T *argvars UNUSED;
85 ! typval_T *rettv UNUSED;
87 #ifdef FEAT_SEARCH_EXTRA
88 clear_matches(curwin);
92 * "complete()" function
96 f_complete(argvars, rettv)
104 * "complete()" function
107 f_complete(argvars, rettv)
109 ! typval_T *rettv UNUSED;
116 * "complete_add()" function
120 f_complete_add(argvars, rettv)
126 * "complete_check()" function
130 f_complete_check(argvars, rettv)
134 int saved = RedrawingDisabled;
137 * "complete_check()" function
140 f_complete_check(argvars, rettv)
141 ! typval_T *argvars UNUSED;
144 int saved = RedrawingDisabled;
148 * "confirm(message, buttons[, default [, type]])" function
152 f_confirm(argvars, rettv)
156 #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
160 * "confirm(message, buttons[, default [, type]])" function
163 f_confirm(argvars, rettv)
164 ! typval_T *argvars UNUSED;
165 ! typval_T *rettv UNUSED;
167 #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
172 * Checks the existence of a cscope connection.
176 f_cscope_connection(argvars, rettv)
184 * Checks the existence of a cscope connection.
187 f_cscope_connection(argvars, rettv)
188 ! typval_T *argvars UNUSED;
189 ! typval_T *rettv UNUSED;
195 * Moves the cursor to the specified line and column.
196 * Returns 0 when the position could be set, -1 otherwise.
200 f_cursor(argvars, rettv)
206 * "did_filetype()" function
210 f_did_filetype(argvars, rettv)
215 rettv->vval.v_number = did_filetype;
218 * "did_filetype()" function
221 f_did_filetype(argvars, rettv)
222 ! typval_T *argvars UNUSED;
223 ! typval_T *rettv UNUSED;
226 rettv->vval.v_number = did_filetype;
230 * "diff_filler()" function
234 f_diff_filler(argvars, rettv)
239 rettv->vval.v_number = diff_check_fill(curwin, get_tv_lnum(argvars));
242 * "diff_filler()" function
245 f_diff_filler(argvars, rettv)
246 ! typval_T *argvars UNUSED;
247 ! typval_T *rettv UNUSED;
250 rettv->vval.v_number = diff_check_fill(curwin, get_tv_lnum(argvars));
254 * "diff_hlID()" function
258 f_diff_hlID(argvars, rettv)
263 linenr_T lnum = get_tv_lnum(argvars);
266 * "diff_hlID()" function
269 f_diff_hlID(argvars, rettv)
270 ! typval_T *argvars UNUSED;
271 ! typval_T *rettv UNUSED;
274 linenr_T lnum = get_tv_lnum(argvars);
282 f_eval(argvars, rettv)
288 * "eventhandler()" function
292 f_eventhandler(argvars, rettv)
296 rettv->vval.v_number = vgetc_busy;
299 * "eventhandler()" function
302 f_eventhandler(argvars, rettv)
303 ! typval_T *argvars UNUSED;
306 rettv->vval.v_number = vgetc_busy;
310 * "feedkeys()" function
314 f_feedkeys(argvars, rettv)
319 char_u *keys, *flags;
322 * "feedkeys()" function
325 f_feedkeys(argvars, rettv)
327 ! typval_T *rettv UNUSED;
330 char_u *keys, *flags;
334 * "foldtext()" function
338 f_foldtext(argvars, rettv)
345 * "foldtext()" function
348 f_foldtext(argvars, rettv)
349 ! typval_T *argvars UNUSED;
356 * "foldtextresult(lnum)" function
360 f_foldtextresult(argvars, rettv)
367 * "foldtextresult(lnum)" function
370 f_foldtextresult(argvars, rettv)
371 ! typval_T *argvars UNUSED;
378 * "foreground()" function
382 f_foreground(argvars, rettv)
390 * "foreground()" function
393 f_foreground(argvars, rettv)
394 ! typval_T *argvars UNUSED;
395 ! typval_T *rettv UNUSED;
402 * "function()" function
406 f_function(argvars, rettv)
412 * "garbagecollect()" function
416 f_garbagecollect(argvars, rettv)
420 /* This is postponed until we are back at the toplevel, because we may be
421 * using Lists and Dicts internally. E.g.: ":echo [garbagecollect()]". */
424 * "garbagecollect()" function
427 f_garbagecollect(argvars, rettv)
429 ! typval_T *rettv UNUSED;
431 /* This is postponed until we are back at the toplevel, because we may be
432 * using Lists and Dicts internally. E.g.: ":echo [garbagecollect()]". */
436 * "getcharmod()" function
440 f_getcharmod(argvars, rettv)
444 rettv->vval.v_number = mod_mask;
447 * "getcharmod()" function
450 f_getcharmod(argvars, rettv)
451 ! typval_T *argvars UNUSED;
454 rettv->vval.v_number = mod_mask;
458 * "getcmdline()" function
462 f_getcmdline(argvars, rettv)
466 rettv->v_type = VAR_STRING;
469 * "getcmdline()" function
472 f_getcmdline(argvars, rettv)
473 ! typval_T *argvars UNUSED;
476 rettv->v_type = VAR_STRING;
480 * "getcmdpos()" function
484 f_getcmdpos(argvars, rettv)
488 rettv->vval.v_number = get_cmdline_pos() + 1;
491 * "getcmdpos()" function
494 f_getcmdpos(argvars, rettv)
495 ! typval_T *argvars UNUSED;
498 rettv->vval.v_number = get_cmdline_pos() + 1;
502 * "getcmdtype()" function
506 f_getcmdtype(argvars, rettv)
510 rettv->v_type = VAR_STRING;
513 * "getcmdtype()" function
516 f_getcmdtype(argvars, rettv)
517 ! typval_T *argvars UNUSED;
520 rettv->v_type = VAR_STRING;
524 * "getcwd()" function
528 f_getcwd(argvars, rettv)
532 char_u cwd[MAXPATHL];
535 * "getcwd()" function
538 f_getcwd(argvars, rettv)
539 ! typval_T *argvars UNUSED;
542 char_u cwd[MAXPATHL];
546 * "getfontname()" function
550 f_getfontname(argvars, rettv)
554 rettv->v_type = VAR_STRING;
557 * "getfontname()" function
560 f_getfontname(argvars, rettv)
561 ! typval_T *argvars UNUSED;
564 rettv->v_type = VAR_STRING;
568 * "getmatches()" function
572 f_getmatches(argvars, rettv)
576 #ifdef FEAT_SEARCH_EXTRA
579 * "getmatches()" function
582 f_getmatches(argvars, rettv)
583 ! typval_T *argvars UNUSED;
586 #ifdef FEAT_SEARCH_EXTRA
590 * "getpid()" function
594 f_getpid(argvars, rettv)
598 rettv->vval.v_number = mch_get_pid();
601 * "getpid()" function
604 f_getpid(argvars, rettv)
605 ! typval_T *argvars UNUSED;
608 rettv->vval.v_number = mch_get_pid();
612 * "getqflist()" and "getloclist()" functions
616 f_getqflist(argvars, rettv)
624 * "getqflist()" and "getloclist()" functions
627 f_getqflist(argvars, rettv)
628 ! typval_T *argvars UNUSED;
629 ! typval_T *rettv UNUSED;
636 * "getwinposx()" function
640 f_getwinposx(argvars, rettv)
644 rettv->vval.v_number = -1;
647 * "getwinposx()" function
650 f_getwinposx(argvars, rettv)
651 ! typval_T *argvars UNUSED;
654 rettv->vval.v_number = -1;
658 * "getwinposy()" function
662 f_getwinposy(argvars, rettv)
666 rettv->vval.v_number = -1;
669 * "getwinposy()" function
672 f_getwinposy(argvars, rettv)
673 ! typval_T *argvars UNUSED;
676 rettv->vval.v_number = -1;
680 * "haslocaldir()" function
684 f_haslocaldir(argvars, rettv)
688 rettv->vval.v_number = (curwin->w_localdir != NULL);
691 * "haslocaldir()" function
694 f_haslocaldir(argvars, rettv)
695 ! typval_T *argvars UNUSED;
698 rettv->vval.v_number = (curwin->w_localdir != NULL);
702 * "histadd()" function
706 f_histadd(argvars, rettv)
713 * "histadd()" function
716 f_histadd(argvars, rettv)
717 ! typval_T *argvars UNUSED;
724 * "histdel()" function
728 f_histdel(argvars, rettv)
736 * "histdel()" function
739 f_histdel(argvars, rettv)
740 ! typval_T *argvars UNUSED;
741 ! typval_T *rettv UNUSED;
748 * "histget()" function
752 f_histget(argvars, rettv)
759 * "histget()" function
762 f_histget(argvars, rettv)
763 ! typval_T *argvars UNUSED;
770 * "histnr()" function
774 f_histnr(argvars, rettv)
781 * "histnr()" function
784 f_histnr(argvars, rettv)
785 ! typval_T *argvars UNUSED;
792 * "hostname()" function
796 f_hostname(argvars, rettv)
800 char_u hostname[256];
803 * "hostname()" function
806 f_hostname(argvars, rettv)
807 ! typval_T *argvars UNUSED;
810 char_u hostname[256];
818 f_iconv(argvars, rettv)
828 f_iconv(argvars, rettv)
829 ! typval_T *argvars UNUSED;
836 * "inputrestore()" function
840 f_inputrestore(argvars, rettv)
844 if (ga_userinput.ga_len > 0)
847 * "inputrestore()" function
850 f_inputrestore(argvars, rettv)
851 ! typval_T *argvars UNUSED;
854 if (ga_userinput.ga_len > 0)
858 * "inputsave()" function
862 f_inputsave(argvars, rettv)
866 /* Add an entry to the stack of typeahead storage. */
869 * "inputsave()" function
872 f_inputsave(argvars, rettv)
873 ! typval_T *argvars UNUSED;
876 /* Add an entry to the stack of typeahead storage. */
880 * "last_buffer_nr()" function.
884 f_last_buffer_nr(argvars, rettv)
891 * "last_buffer_nr()" function.
894 f_last_buffer_nr(argvars, rettv)
895 ! typval_T *argvars UNUSED;
902 * "line2byte(lnum)" function
906 f_line2byte(argvars, rettv)
913 * "line2byte(lnum)" function
916 f_line2byte(argvars, rettv)
917 ! typval_T *argvars UNUSED;
924 * "localtime()" function
928 f_localtime(argvars, rettv)
932 rettv->vval.v_number = (varnumber_T)time(NULL);
935 * "localtime()" function
938 f_localtime(argvars, rettv)
939 ! typval_T *argvars UNUSED;
942 rettv->vval.v_number = (varnumber_T)time(NULL);
950 f_mode(argvars, rettv)
956 * "pumvisible()" function
960 f_pumvisible(argvars, rettv)
964 #ifdef FEAT_INS_EXPAND
968 * "pumvisible()" function
971 f_pumvisible(argvars, rettv)
972 ! typval_T *argvars UNUSED;
973 ! typval_T *rettv UNUSED;
975 #ifdef FEAT_INS_EXPAND
980 * "remote_expr()" function
984 f_remote_expr(argvars, rettv)
988 rettv->v_type = VAR_STRING;
991 * "remote_expr()" function
994 f_remote_expr(argvars, rettv)
995 ! typval_T *argvars UNUSED;
998 rettv->v_type = VAR_STRING;
1000 *** 14147,14157 ****
1002 * "remote_foreground()" function
1006 f_remote_foreground(argvars, rettv)
1007 ! typval_T *argvars;
1010 #ifdef FEAT_CLIENTSERVER
1012 --- 14100,14109 ----
1014 * "remote_foreground()" function
1017 f_remote_foreground(argvars, rettv)
1018 ! typval_T *argvars UNUSED;
1019 ! typval_T *rettv UNUSED;
1021 #ifdef FEAT_CLIENTSERVER
1024 *** 14173,14182 ****
1030 f_remote_peek(argvars, rettv)
1031 ! typval_T *argvars;
1034 #ifdef FEAT_CLIENTSERVER
1035 --- 14125,14133 ----
1040 f_remote_peek(argvars, rettv)
1041 ! typval_T *argvars UNUSED;
1044 #ifdef FEAT_CLIENTSERVER
1046 *** 14231,14240 ****
1052 f_remote_read(argvars, rettv)
1053 ! typval_T *argvars;
1057 --- 14182,14190 ----
1062 f_remote_read(argvars, rettv)
1063 ! typval_T *argvars UNUSED;
1068 *** 14266,14275 ****
1070 * "remote_send()" function
1074 f_remote_send(argvars, rettv)
1075 ! typval_T *argvars;
1078 rettv->v_type = VAR_STRING;
1079 --- 14216,14224 ----
1081 * "remote_send()" function
1084 f_remote_send(argvars, rettv)
1085 ! typval_T *argvars UNUSED;
1088 rettv->v_type = VAR_STRING;
1090 *** 14398,14404 ****
1092 * "repeat()" function
1096 f_repeat(argvars, rettv)
1098 --- 14347,14352 ----
1100 *** 15207,15216 ****
1106 f_server2client(argvars, rettv)
1107 ! typval_T *argvars;
1110 #ifdef FEAT_CLIENTSERVER
1111 --- 15155,15163 ----
1116 f_server2client(argvars, rettv)
1117 ! typval_T *argvars UNUSED;
1120 #ifdef FEAT_CLIENTSERVER
1122 *** 15239,15248 ****
1128 f_serverlist(argvars, rettv)
1129 ! typval_T *argvars;
1133 --- 15186,15194 ----
1138 f_serverlist(argvars, rettv)
1139 ! typval_T *argvars UNUSED;
1144 *** 15263,15273 ****
1146 * "setbufvar()" function
1150 f_setbufvar(argvars, rettv)
1156 --- 15209,15218 ----
1158 * "setbufvar()" function
1161 f_setbufvar(argvars, rettv)
1163 ! typval_T *rettv UNUSED;
1168 *** 15402,15413 ****
1170 * Used by "setqflist()" and "setloclist()" functions
1174 set_qf_ll_list(wp, list_arg, action_arg, rettv)
1176 ! typval_T *list_arg;
1177 ! typval_T *action_arg;
1180 #ifdef FEAT_QUICKFIX
1181 --- 15347,15357 ----
1183 * Used by "setqflist()" and "setloclist()" functions
1186 set_qf_ll_list(wp, list_arg, action_arg, rettv)
1188 ! typval_T *list_arg UNUSED;
1189 ! typval_T *action_arg UNUSED;
1192 #ifdef FEAT_QUICKFIX
1194 *** 15442,15448 ****
1196 * "setloclist()" function
1200 f_setloclist(argvars, rettv)
1202 --- 15386,15391 ----
1204 *** 15520,15526 ****
1206 * "setpos()" function
1210 f_setpos(argvars, rettv)
1212 --- 15463,15468 ----
1214 *** 15564,15570 ****
1216 * "setqflist()" function
1220 f_setqflist(argvars, rettv)
1222 --- 15506,15511 ----
1224 *** 15667,15677 ****
1226 * "setwinvar()" and "settabwinvar()" functions
1230 setwinvar(argvars, rettv, off)
1236 --- 15608,15617 ----
1238 * "setwinvar()" and "settabwinvar()" functions
1241 setwinvar(argvars, rettv, off)
1243 ! typval_T *rettv UNUSED;
1248 *** 15987,15996 ****
1250 * "spellbadword()" function
1254 f_spellbadword(argvars, rettv)
1255 ! typval_T *argvars;
1258 char_u *word = (char_u *)"";
1259 --- 15927,15935 ----
1261 * "spellbadword()" function
1264 f_spellbadword(argvars, rettv)
1265 ! typval_T *argvars UNUSED;
1268 char_u *word = (char_u *)"";
1270 *** 16042,16051 ****
1272 * "spellsuggest()" function
1276 f_spellsuggest(argvars, rettv)
1277 ! typval_T *argvars;
1281 --- 15981,15989 ----
1283 * "spellsuggest()" function
1286 f_spellsuggest(argvars, rettv)
1287 ! typval_T *argvars UNUSED;
1292 *** 16528,16537 ****
1294 * "synID(lnum, col, trans)" function
1298 f_synID(argvars, rettv)
1299 ! typval_T *argvars;
1303 --- 16466,16474 ----
1305 * "synID(lnum, col, trans)" function
1308 f_synID(argvars, rettv)
1309 ! typval_T *argvars UNUSED;
1314 *** 16556,16565 ****
1316 * "synIDattr(id, what [, mode])" function
1320 f_synIDattr(argvars, rettv)
1321 ! typval_T *argvars;
1325 --- 16493,16501 ----
1327 * "synIDattr(id, what [, mode])" function
1330 f_synIDattr(argvars, rettv)
1331 ! typval_T *argvars UNUSED;
1336 *** 16652,16661 ****
1338 * "synIDtrans(id)" function
1342 f_synIDtrans(argvars, rettv)
1343 ! typval_T *argvars;
1347 --- 16588,16596 ----
1349 * "synIDtrans(id)" function
1352 f_synIDtrans(argvars, rettv)
1353 ! typval_T *argvars UNUSED;
1358 *** 16675,16684 ****
1360 * "synstack(lnum, col)" function
1364 f_synstack(argvars, rettv)
1365 ! typval_T *argvars;
1369 --- 16610,16618 ----
1371 * "synstack(lnum, col)" function
1374 f_synstack(argvars, rettv)
1375 ! typval_T *argvars UNUSED;
1380 *** 16812,16822 ****
1382 * "tabpagebuflist()" function
1386 f_tabpagebuflist(argvars, rettv)
1387 ! typval_T *argvars;
1392 --- 16746,16755 ----
1394 * "tabpagebuflist()" function
1397 f_tabpagebuflist(argvars, rettv)
1398 ! typval_T *argvars UNUSED;
1399 ! typval_T *rettv UNUSED;
1404 *** 16844,16853 ****
1406 * "tabpagenr()" function
1410 f_tabpagenr(argvars, rettv)
1411 ! typval_T *argvars;
1415 --- 16777,16785 ----
1417 * "tabpagenr()" function
1420 f_tabpagenr(argvars, rettv)
1421 ! typval_T *argvars UNUSED;
1426 *** 16929,16938 ****
1428 * "tabpagewinnr()" function
1432 f_tabpagewinnr(argvars, rettv)
1433 ! typval_T *argvars;
1437 --- 16861,16869 ----
1439 * "tabpagewinnr()" function
1442 f_tabpagewinnr(argvars, rettv)
1443 ! typval_T *argvars UNUSED;
1448 *** 16952,16961 ****
1450 * "tagfiles()" function
1454 f_tagfiles(argvars, rettv)
1455 ! typval_T *argvars;
1458 char_u fname[MAXPATHL + 1];
1459 --- 16883,16891 ----
1461 * "tagfiles()" function
1464 f_tagfiles(argvars, rettv)
1465 ! typval_T *argvars UNUSED;
1468 char_u fname[MAXPATHL + 1];
1470 *** 16995,17004 ****
1472 * "tempname()" function
1476 f_tempname(argvars, rettv)
1477 ! typval_T *argvars;
1481 --- 16925,16933 ----
1483 * "tempname()" function
1486 f_tempname(argvars, rettv)
1487 ! typval_T *argvars UNUSED;
1492 *** 17031,17041 ****
1494 * "test(list)" function: Just checking the walls...
1498 f_test(argvars, rettv)
1499 ! typval_T *argvars;
1502 /* Used for unit testing. Change the code below to your liking. */
1504 --- 16960,16969 ----
1506 * "test(list)" function: Just checking the walls...
1509 f_test(argvars, rettv)
1510 ! typval_T *argvars UNUSED;
1511 ! typval_T *rettv UNUSED;
1513 /* Used for unit testing. Change the code below to your liking. */
1516 *** 17320,17330 ****
1518 * "visualmode()" function
1522 f_visualmode(argvars, rettv)
1523 ! typval_T *argvars;
1528 --- 17248,17257 ----
1530 * "visualmode()" function
1533 f_visualmode(argvars, rettv)
1534 ! typval_T *argvars UNUSED;
1535 ! typval_T *rettv UNUSED;
1540 *** 17360,17369 ****
1542 * "wincol()" function
1546 f_wincol(argvars, rettv)
1547 ! typval_T *argvars;
1551 --- 17287,17295 ----
1553 * "wincol()" function
1556 f_wincol(argvars, rettv)
1557 ! typval_T *argvars UNUSED;
1562 *** 17390,17399 ****
1564 * "winline()" function
1568 f_winline(argvars, rettv)
1569 ! typval_T *argvars;
1573 --- 17316,17324 ----
1575 * "winline()" function
1578 f_winline(argvars, rettv)
1579 ! typval_T *argvars UNUSED;
1584 *** 17403,17412 ****
1586 * "winnr()" function
1590 f_winnr(argvars, rettv)
1591 ! typval_T *argvars;
1595 --- 17328,17336 ----
1597 * "winnr()" function
1600 f_winnr(argvars, rettv)
1601 ! typval_T *argvars UNUSED;
1606 *** 17420,17429 ****
1608 * "winrestcmd()" function
1612 f_winrestcmd(argvars, rettv)
1613 ! typval_T *argvars;
1617 --- 17344,17352 ----
1619 * "winrestcmd()" function
1622 f_winrestcmd(argvars, rettv)
1623 ! typval_T *argvars UNUSED;
1628 *** 17455,17465 ****
1630 * "winrestview()" function
1634 f_winrestview(argvars, rettv)
1640 --- 17378,17387 ----
1642 * "winrestview()" function
1645 f_winrestview(argvars, rettv)
1647 ! typval_T *rettv UNUSED;
1652 *** 17501,17510 ****
1654 * "winsaveview()" function
1658 f_winsaveview(argvars, rettv)
1659 ! typval_T *argvars;
1663 --- 17423,17431 ----
1665 * "winsaveview()" function
1668 f_winsaveview(argvars, rettv)
1669 ! typval_T *argvars UNUSED;
1674 *** 21646,21657 ****
1675 * Called by do_cmdline() to get the next line.
1676 * Returns allocated string, or NULL for end of function.
1680 get_func_line(c, cookie, indent)
1681 ! int c; /* not used */
1683 ! int indent; /* not used */
1685 funccall_T *fcp = (funccall_T *)cookie;
1686 ufunc_T *fp = fcp->func;
1687 --- 21567,21577 ----
1688 * Called by do_cmdline() to get the next line.
1689 * Returns allocated string, or NULL for end of function.
1692 get_func_line(c, cookie, indent)
1695 ! int indent UNUSED;
1697 funccall_T *fcp = (funccall_T *)cookie;
1698 ufunc_T *fp = fcp->func;
1700 *** 22023,22032 ****
1702 * List v:oldfiles in a nice way.
1709 list_T *l = vimvars[VV_OLDFILES].vv_list;
1711 --- 21943,21951 ----
1713 * List v:oldfiles in a nice way.
1717 ! exarg_T *eap UNUSED;
1719 list_T *l = vimvars[VV_OLDFILES].vv_list;
1721 *** ../vim-7.2.176/src/ex_docmd.c 2009-05-16 16:36:25.000000000 +0200
1722 --- src/ex_docmd.c 2009-05-16 17:01:26.000000000 +0200
1726 if (VIM_ISDIGIT(*cmd))
1727 p = skipwhite(skipdigits(cmd));
1728 ! for (i = 0; i < sizeof(cmdmods) / sizeof(struct cmdmod); ++i)
1730 for (j = 0; p[j] != NUL; ++j)
1731 if (p[j] != cmdmods[i].name[j])
1734 if (VIM_ISDIGIT(*cmd))
1735 p = skipwhite(skipdigits(cmd));
1736 ! for (i = 0; i < (int)(sizeof(cmdmods) / sizeof(struct cmdmod)); ++i)
1738 for (j = 0; p[j] != NUL; ++j)
1739 if (p[j] != cmdmods[i].name[j])
1744 /* Check command modifiers. */
1745 ! for (i = 0; i < sizeof(cmdmods) / sizeof(struct cmdmod); ++i)
1747 for (j = 0; name[j] != NUL; ++j)
1748 if (name[j] != cmdmods[i].name[j])
1752 /* Check command modifiers. */
1753 ! for (i = 0; i < (int)(sizeof(cmdmods) / sizeof(struct cmdmod)); ++i)
1755 for (j = 0; name[j] != NUL; ++j)
1756 if (name[j] != cmdmods[i].name[j])
1759 {"bang", "bar", "buffer", "complete", "count",
1760 "nargs", "range", "register"};
1762 ! if (idx >= sizeof(user_cmd_flags) / sizeof(user_cmd_flags[0]))
1764 return (char_u *)user_cmd_flags[idx];
1767 {"bang", "bar", "buffer", "complete", "count",
1768 "nargs", "range", "register"};
1770 ! if (idx >= (int)(sizeof(user_cmd_flags) / sizeof(user_cmd_flags[0])))
1772 return (char_u *)user_cmd_flags[idx];
1777 static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
1779 ! if (idx >= sizeof(user_cmd_nargs) / sizeof(user_cmd_nargs[0]))
1781 return (char_u *)user_cmd_nargs[idx];
1785 static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
1787 ! if (idx >= (int)(sizeof(user_cmd_nargs) / sizeof(user_cmd_nargs[0])))
1789 return (char_u *)user_cmd_nargs[idx];
1802 stop_insert_mode = TRUE;
1809 ! exarg_T *eap UNUSED;
1812 stop_insert_mode = TRUE;
1813 *** ../vim-7.2.176/src/ex_eval.c 2007-11-24 21:50:19.000000000 +0100
1814 --- src/ex_eval.c 2009-05-16 17:06:09.000000000 +0200
1819 /* Values used for the Vim release. */
1820 # define THROW_ON_ERROR TRUE
1821 + # define THROW_ON_ERROR_TRUE
1822 # define THROW_ON_INTERRUPT TRUE
1823 + # define THROW_ON_INTERRUPT_TRUE
1826 static void catch_exception __ARGS((except_T *excp));
1830 * and reset the did_emsg or got_int flag, so this won't happen again at
1831 * the next surrounding try conditional.
1833 + #ifndef THROW_ON_ERROR_TRUE
1834 if (did_emsg && !THROW_ON_ERROR)
1836 inactivate_try = TRUE;
1840 + #ifndef THROW_ON_INTERRUPT_TRUE
1841 if (got_int && !THROW_ON_INTERRUPT)
1843 inactivate_try = TRUE;
1847 idx = cleanup_conditionals(cstack, 0, inactivate_try);
1853 * ":endfunction" when not after a ":function"
1860 EMSG(_("E193: :endfunction not inside a function"));
1864 * ":endfunction" when not after a ":function"
1868 ! exarg_T *eap UNUSED;
1870 EMSG(_("E193: :endfunction not inside a function"));
1872 *** ../vim-7.2.176/src/ex_getln.c 2009-05-15 21:31:11.000000000 +0200
1873 --- src/ex_getln.c 2009-05-16 17:06:55.000000000 +0200
1876 * right function to do the expansion.
1879 ! for (i = 0; i < sizeof(tab) / sizeof(struct expgen); ++i)
1880 if (xp->xp_context == tab[i].context)
1884 * right function to do the expansion.
1887 ! for (i = 0; i < (int)(sizeof(tab) / sizeof(struct expgen)); ++i)
1888 if (xp->xp_context == tab[i].context)
1891 *** ../vim-7.2.176/src/fileio.c 2009-05-15 21:31:11.000000000 +0200
1892 --- src/fileio.c 2009-05-16 17:07:35.000000000 +0200
1895 * Called by do_cmdline() to get the next line for ":if".
1896 * Returns allocated string, or NULL for end of autocommands.
1900 getnextac(c, cookie, indent)
1901 ! int c; /* not used */
1903 ! int indent; /* not used */
1905 AutoPatCmd *acp = (AutoPatCmd *)cookie;
1908 * Called by do_cmdline() to get the next line for ":if".
1909 * Returns allocated string, or NULL for end of autocommands.
1912 getnextac(c, cookie, indent)
1915 ! int indent UNUSED;
1917 AutoPatCmd *acp = (AutoPatCmd *)cookie;
1921 * Function given to ExpandGeneric() to obtain the list of autocommand group
1926 get_augroup_name(xp, idx)
1930 if (idx == augroups.ga_len) /* add "END" add the end */
1932 * Function given to ExpandGeneric() to obtain the list of autocommand group
1936 get_augroup_name(xp, idx)
1937 ! expand_T *xp UNUSED;
1940 if (idx == augroups.ga_len) /* add "END" add the end */
1944 * Function given to ExpandGeneric() to obtain the list of event names.
1948 get_event_name(xp, idx)
1952 if (idx < augroups.ga_len) /* First list group names, if wanted */
1955 * Function given to ExpandGeneric() to obtain the list of event names.
1958 get_event_name(xp, idx)
1959 ! expand_T *xp UNUSED;
1962 if (idx < augroups.ga_len) /* First list group names, if wanted */
1963 *** ../vim-7.2.176/src/hardcopy.c 2008-01-12 16:46:41.000000000 +0100
1964 --- src/hardcopy.c 2009-05-16 17:18:27.000000000 +0200
1968 * Print the page header.
1972 prt_header(psettings, pagenum, lnum)
1973 prt_settings_T *psettings;
1977 int width = psettings->chars_per_line;
1981 * Print the page header.
1984 prt_header(psettings, pagenum, lnum)
1985 prt_settings_T *psettings;
1987 ! linenr_T lnum UNUSED;
1989 int width = psettings->chars_per_line;
1995 /* Find type of DSC comment */
1996 ! for (comment = 0; comment < NUM_ELEMENTS(prt_dsc_table); comment++)
1997 if (prt_resfile_strncmp(0, prt_dsc_table[comment].string,
1998 prt_dsc_table[comment].len) == 0)
2003 /* Find type of DSC comment */
2004 ! for (comment = 0; comment < (int)NUM_ELEMENTS(prt_dsc_table); comment++)
2005 if (prt_resfile_strncmp(0, prt_dsc_table[comment].string,
2006 prt_dsc_table[comment].len) == 0)
2015 mch_print_init(psettings, jobname, forceit)
2016 prt_settings_T *psettings;
2027 mch_print_init(psettings, jobname, forceit)
2028 prt_settings_T *psettings;
2030 ! int forceit UNUSED;
2036 if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
2038 p_mbenc_first = NULL;
2039 ! for (cmap = 0; cmap < NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
2040 if (prt_match_encoding((char *)p_encoding, &prt_ps_mbfonts[cmap],
2044 if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
2046 p_mbenc_first = NULL;
2047 ! for (cmap = 0; cmap < (int)NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
2048 if (prt_match_encoding((char *)p_encoding, &prt_ps_mbfonts[cmap],
2056 ! for (i = 0; i < PRT_MEDIASIZE_LEN; ++i)
2057 if (STRLEN(prt_mediasize[i].name) == (unsigned)paper_strlen
2058 && STRNICMP(prt_mediasize[i].name, paper_name,
2064 ! for (i = 0; i < (int)PRT_MEDIASIZE_LEN; ++i)
2065 if (STRLEN(prt_mediasize[i].name) == (unsigned)paper_strlen
2066 && STRNICMP(prt_mediasize[i].name, paper_name,
2070 return !prt_file_error;
2075 mch_print_begin_page(str)
2081 return !prt_file_error;
2085 mch_print_begin_page(str)
2086 ! char_u *str UNUSED;
2097 mch_print_text_out(p, len)
2108 mch_print_text_out(p, len)
2114 *** ../vim-7.2.176/src/if_cscope.c 2009-05-16 16:15:39.000000000 +0200
2115 --- src/if_cscope.c 2009-05-16 17:19:30.000000000 +0200
2118 N_("Reinit all connections"), "reset", 0 },
2120 N_("Show connections"), "show", 0 },
2126 N_("Reinit all connections"), "reset", 0 },
2128 N_("Show connections"), "show", 0 },
2129 ! { NULL, NULL, NULL, NULL, 0 }
2135 * Function given to ExpandGeneric() to obtain the cscope command
2140 get_cscope_name(xp, idx)
2146 * Function given to ExpandGeneric() to obtain the cscope command
2150 get_cscope_name(xp, idx)
2151 ! expand_T *xp UNUSED;
2165 char *fname, *ppath, *flags = NULL;
2173 ! exarg_T *eap UNUSED;
2175 char *fname, *ppath, *flags = NULL;
2187 cscmd_T *cmdp = cs_cmds;
2195 ! exarg_T *eap UNUSED;
2197 cscmd_T *cmdp = cs_cmds;
2202 * insert a new cscope database filename into the filelist
2206 cs_insert_filelist(fname, ppath, flags, sb)
2216 * insert a new cscope database filename into the filelist
2219 cs_insert_filelist(fname, ppath, flags, sb)
2223 ! struct stat *sb UNUSED;
2245 ! exarg_T *eap UNUSED;
2252 * Used to catch and ignore SIGALRM below.
2256 sig_handler SIGDEFARG(sigarg)
2262 * calls cs_kill on all cscope connections then reinits
2269 char **dblist = NULL, **pplist = NULL, **fllist = NULL;
2273 * calls cs_kill on all cscope connections then reinits
2277 ! exarg_T *eap UNUSED;
2279 char **dblist = NULL, **pplist = NULL, **fllist = NULL;
2284 * show all cscope connections
2292 if (cs_cnt_connections() == 0)
2295 * show all cscope connections
2299 ! exarg_T *eap UNUSED;
2302 if (cs_cnt_connections() == 0)
2303 *** ../vim-7.2.176/src/if_xcmdsrv.c 2008-11-12 14:52:11.000000000 +0100
2304 --- src/if_xcmdsrv.c 2009-05-16 17:12:32.000000000 +0200
2307 * Scan all of the names out of the property.
2309 ga_init2(&ga, 1, 100);
2310 ! for (p = regProp; (p - regProp) < numItems; p++)
2313 while (*p != 0 && !isspace(*p))
2315 * Scan all of the names out of the property.
2317 ga_init2(&ga, 1, 100);
2318 ! for (p = regProp; (long_u)(p - regProp) < numItems; p++)
2321 while (*p != 0 && !isspace(*p))
2325 returnValue = (int_u)None;
2326 entry = NULL; /* Not needed, but eliminates compiler warning. */
2327 ! for (p = regProp; (p - regProp) < numItems; )
2330 while (*p != 0 && !isspace(*p))
2333 returnValue = (int_u)None;
2334 entry = NULL; /* Not needed, but eliminates compiler warning. */
2335 ! for (p = regProp; (long_u)(p - regProp) < numItems; )
2338 while (*p != 0 && !isspace(*p))
2342 if (loose != NULL && returnValue == (int_u)None && !IsSerialName(name))
2344 ! for (p = regProp; (p - regProp) < numItems; )
2347 while (*p != 0 && !isspace(*p))
2350 if (loose != NULL && returnValue == (int_u)None && !IsSerialName(name))
2352 ! for (p = regProp; (long_u)(p - regProp) < numItems; )
2355 while (*p != 0 && !isspace(*p))
2360 /* Scan the property for the window id. */
2361 ! for (p = regProp; (p - regProp) < numItems; )
2368 /* Scan the property for the window id. */
2369 ! for (p = regProp; (long_u)(p - regProp) < numItems; )
2375 * one time; each iteration through the outer loop handles a
2376 * single command or result.
2378 ! for (p = propInfo; (p - propInfo) < numItems; )
2381 * Ignore leading NULs; each command or result starts with a
2383 * one time; each iteration through the outer loop handles a
2384 * single command or result.
2386 ! for (p = propInfo; (long_u)(p - propInfo) < numItems; )
2389 * Ignore leading NULs; each command or result starts with a
2392 serial = (char_u *)"";
2395 ! while (p - propInfo < numItems && *p == '-')
2400 serial = (char_u *)"";
2403 ! while ((long_u)(p - propInfo) < numItems && *p == '-')
2412 ! while ((p-propInfo) < numItems && *p == '-')
2420 ! while ((long_u)(p - propInfo) < numItems && *p == '-')
2429 ! while ((p-propInfo) < numItems && *p == '-')
2437 ! while ((long_u)(p - propInfo) < numItems && *p == '-')
2444 * Another X Error handler, just used to check for errors.
2448 x_error_check(dpy, error_event)
2450 ! XErrorEvent *error_event;
2456 * Another X Error handler, just used to check for errors.
2459 x_error_check(dpy, error_event)
2460 ! Display *dpy UNUSED;
2461 ! XErrorEvent *error_event UNUSED;
2465 *** ../vim-7.2.176/src/farsi.c 2008-06-25 00:25:17.000000000 +0200
2466 --- src/farsi.c 2009-05-16 17:14:41.000000000 +0200
2472 ! if (p_ri && (curwin->w_cursor.col+1 < STRLEN(ml_get_curline())))
2480 ! if (p_ri && (curwin->w_cursor.col + 1
2481 ! < (colnr_T)STRLEN(ml_get_curline())))
2487 if (curwin->w_p_rl && p_ri)
2490 ! if ( (curwin->w_cursor.col < STRLEN(ml_get_curline())))
2492 if ((p_ri && curwin->w_cursor.col) || !p_ri)
2495 if (curwin->w_p_rl && p_ri)
2498 ! if ((curwin->w_cursor.col < (colnr_T)STRLEN(ml_get_curline())))
2500 if ((p_ri && curwin->w_cursor.col) || !p_ri)
2505 tempc = gchar_cursor();
2507 ! if (curwin->w_cursor.col+1 < STRLEN(ml_get_curline()))
2513 tempc = gchar_cursor();
2515 ! if (curwin->w_cursor.col + 1 < (colnr_T)STRLEN(ml_get_curline()))
2524 ! if (!curwin->w_cursor.col &&
2525 ! (curwin->w_cursor.col+1 == STRLEN(ml_get_curline())))
2528 if (!curwin->w_cursor.col && p_ri)
2533 ! if (curwin->w_cursor.col != 0 &&
2534 ! (curwin->w_cursor.col + 1 == (colnr_T)STRLEN(ml_get_curline())))
2537 if (!curwin->w_cursor.col && p_ri)
2543 ! if (!curwin->w_cursor.col &&
2544 ! (curwin->w_cursor.col+1 == STRLEN(ml_get_curline())))
2547 if (!curwin->w_cursor.col && p_ri)
2552 ! if (curwin->w_cursor.col != 0 &&
2553 ! (curwin->w_cursor.col + 1 == (colnr_T)STRLEN(ml_get_curline())))
2556 if (!curwin->w_cursor.col && p_ri)
2557 *** ../vim-7.2.176/src/mark.c 2009-04-29 11:00:09.000000000 +0200
2558 --- src/mark.c 2009-05-16 17:14:56.000000000 +0200
2562 * print the jumplist
2573 * print the jumplist
2577 ! exarg_T *eap UNUSED;
2584 * print the changelist
2595 * print the changelist
2599 ! exarg_T *eap UNUSED;
2603 *** ../vim-7.2.176/src/menu.c 2008-08-17 23:43:53.000000000 +0200
2604 --- src/menu.c 2009-05-16 17:19:57.000000000 +0200
2607 if (skipdigits(menu_path + 7) == p)
2609 menuarg.iconidx = atoi((char *)menu_path + 7);
2610 ! if (menuarg.iconidx >= TOOLBAR_NAME_COUNT)
2611 menuarg.iconidx = -1;
2613 menuarg.icon_builtin = TRUE;
2615 if (skipdigits(menu_path + 7) == p)
2617 menuarg.iconidx = atoi((char *)menu_path + 7);
2618 ! if (menuarg.iconidx >= (int)TOOLBAR_NAME_COUNT)
2619 menuarg.iconidx = -1;
2621 menuarg.icon_builtin = TRUE;
2627 ! for (i = 0; i < TOOLBAR_NAME_COUNT; ++i)
2628 if (STRNCMP(toolbar_names[i], menu_path, p - menu_path)
2635 ! for (i = 0; i < (int)TOOLBAR_NAME_COUNT; ++i)
2636 if (STRNCMP(toolbar_names[i], menu_path, p - menu_path)
2641 * Function given to ExpandGeneric() to obtain the list of (sub)menus (not
2646 get_menu_name(xp, idx)
2650 static vimmenu_T *menu = NULL;
2652 * Function given to ExpandGeneric() to obtain the list of (sub)menus (not
2656 get_menu_name(xp, idx)
2657 ! expand_T *xp UNUSED;
2660 static vimmenu_T *menu = NULL;
2663 * Function given to ExpandGeneric() to obtain the list of menus and menu
2668 get_menu_names(xp, idx)
2672 static vimmenu_T *menu = NULL;
2674 * Function given to ExpandGeneric() to obtain the list of menus and menu
2678 get_menu_names(xp, idx)
2679 ! expand_T *xp UNUSED;
2682 static vimmenu_T *menu = NULL;
2686 * Return TRUE if the menu is the tearoff menu.
2690 menu_is_tearoff(name)
2694 return (STRCMP(name, TEAR_STRING) == 0);
2697 * Return TRUE if the menu is the tearoff menu.
2700 menu_is_tearoff(name)
2701 ! char_u *name UNUSED;
2704 return (STRCMP(name, TEAR_STRING) == 0);
2705 *** ../vim-7.2.176/src/version.c 2009-05-16 16:36:25.000000000 +0200
2706 --- src/version.c 2009-05-16 17:22:08.000000000 +0200
2710 { /* Add new patch number below this line */
2716 (letter from Mark to Mike, about the film's probable certificate)
2717 For an 'A' we would have to: Lose as many shits as possible; Take Jesus
2718 Christ out, if possible; Loose "I fart in your general direction"; Lose
2719 "the oral sex"; Lose "oh, fuck off"; Lose "We make castanets out of your
2721 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
2723 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
2724 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
2725 \\\ download, build and distribute -- http://www.A-A-P.org ///
2726 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///