4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Too many warnings from gcc -Wextra.
12 Solution: Change initializer. Add UNUSED. Add type casts.
13 Files: src/edit.c, src/eval.c, src/ex_cmds.c, src/ex_docmd.c,
14 src/ex_getln.c, src/fileio.c, getchar.c, globals.h, main.c,
15 memline.c, message.c, src/misc1.c, src/move.c, src/normal.c,
16 src/option.c, src/os_unix.c, src/os_unix.h, src/regexp.c,
17 src/search.c, src/tag.c
20 *** ../vim-7.2.173/src/edit.c 2009-05-14 22:19:19.000000000 +0200
21 --- src/edit.c 2009-05-15 21:06:07.000000000 +0200
27 ! if (gchar_cursor() != NUL || virtual_active()
30 start_arrow(&curwin->w_cursor);
35 ! if (gchar_cursor() != NUL
36 ! #ifdef FEAT_VIRTUALEDIT
41 start_arrow(&curwin->w_cursor);
42 *** ../vim-7.2.173/src/eval.c 2009-04-22 16:07:57.000000000 +0200
43 --- src/eval.c 2009-05-15 21:18:08.000000000 +0200
51 f_argc(argvars, rettv)
55 rettv->vval.v_number = ARGCOUNT;
61 f_argc(argvars, rettv)
62 ! typval_T *argvars UNUSED;
65 rettv->vval.v_number = ARGCOUNT;
73 f_argidx(argvars, rettv)
77 rettv->vval.v_number = curwin->w_arg_idx;
83 f_argidx(argvars, rettv)
84 ! typval_T *argvars UNUSED;
87 rettv->vval.v_number = curwin->w_arg_idx;
91 * "browse(save, title, initdir, default)" function
95 f_browse(argvars, rettv)
102 * "browse(save, title, initdir, default)" function
105 f_browse(argvars, rettv)
106 ! typval_T *argvars UNUSED;
113 * "browsedir(title, initdir)" function
117 f_browsedir(argvars, rettv)
124 * "browsedir(title, initdir)" function
127 f_browsedir(argvars, rettv)
128 ! typval_T *argvars UNUSED;
135 * "changenr()" function
139 f_changenr(argvars, rettv)
143 rettv->vval.v_number = curbuf->b_u_seq_cur;
146 * "changenr()" function
149 f_changenr(argvars, rettv)
150 ! typval_T *argvars UNUSED;
153 rettv->vval.v_number = curbuf->b_u_seq_cur;
157 * "clearmatches()" function
161 f_clearmatches(argvars, rettv)
165 #ifdef FEAT_SEARCH_EXTRA
168 * "clearmatches()" function
171 f_clearmatches(argvars, rettv)
172 ! typval_T *argvars UNUSED;
175 #ifdef FEAT_SEARCH_EXTRA
176 *** ../vim-7.2.173/src/ex_cmds.c 2009-05-14 22:19:19.000000000 +0200
177 --- src/ex_cmds.c 2009-05-15 20:42:18.000000000 +0200
181 bigness = curwin->w_height;
182 else if (firstwin == lastwin)
183 bigness = curwin->w_p_scr * 2;
184 + #ifdef FEAT_WINDOWS
186 bigness = curwin->w_height - 3;
191 *** ../vim-7.2.173/src/ex_docmd.c 2009-05-13 18:54:14.000000000 +0200
192 --- src/ex_docmd.c 2009-05-15 20:47:58.000000000 +0200
195 * If "fgetline" is get_loop_line(), return TRUE if the getline it uses equals
196 * "func". * Otherwise return TRUE when "fgetline" equals "func".
200 getline_equal(fgetline, cookie, func)
201 char_u *(*fgetline) __ARGS((int, void *, int));
202 ! void *cookie; /* argument for fgetline() */
203 char_u *(*func) __ARGS((int, void *, int));
207 * If "fgetline" is get_loop_line(), return TRUE if the getline it uses equals
208 * "func". * Otherwise return TRUE when "fgetline" equals "func".
211 getline_equal(fgetline, cookie, func)
212 char_u *(*fgetline) __ARGS((int, void *, int));
213 ! void *cookie UNUSED; /* argument for fgetline() */
214 char_u *(*func) __ARGS((int, void *, int));
219 * If "fgetline" is get_loop_line(), return the cookie used by the original
220 * getline function. Otherwise return "cookie".
224 getline_cookie(fgetline, cookie)
225 ! char_u *(*fgetline) __ARGS((int, void *, int));
226 void *cookie; /* argument for fgetline() */
230 * If "fgetline" is get_loop_line(), return the cookie used by the original
231 * getline function. Otherwise return "cookie".
234 getline_cookie(fgetline, cookie)
235 ! char_u *(*fgetline) __ARGS((int, void *, int)) UNUSED;
236 void *cookie; /* argument for fgetline() */
241 * "full" is set to TRUE if the whole command name matched.
242 * Returns NULL for an ambiguous user command.
246 find_command(eap, full)
253 * "full" is set to TRUE if the whole command name matched.
254 * Returns NULL for an ambiguous user command.
257 find_command(eap, full)
266 * Function given to ExpandGeneric() to obtain the list of command names.
270 get_command_name(xp, idx)
274 if (idx >= (int)CMD_SIZE)
277 * Function given to ExpandGeneric() to obtain the list of command names.
280 get_command_name(xp, idx)
281 ! expand_T *xp UNUSED;
284 if (idx >= (int)CMD_SIZE)
288 * Clear all user commands, global and for current buffer.
296 uc_clear(&curbuf->b_ucmds);
299 * Clear all user commands, global and for current buffer.
303 ! exarg_T *eap UNUSED;
306 uc_clear(&curbuf->b_ucmds);
310 * Function given to ExpandGeneric() to obtain the list of user command names.
314 get_user_commands(xp, idx)
318 if (idx < curbuf->b_ucmds.ga_len)
321 * Function given to ExpandGeneric() to obtain the list of user command names.
324 get_user_commands(xp, idx)
325 ! expand_T *xp UNUSED;
328 if (idx < curbuf->b_ucmds.ga_len)
331 * Function given to ExpandGeneric() to obtain the list of user command
336 get_user_cmd_flags(xp, idx)
340 static char *user_cmd_flags[] =
342 * Function given to ExpandGeneric() to obtain the list of user command
346 get_user_cmd_flags(xp, idx)
347 ! expand_T *xp UNUSED;
350 static char *user_cmd_flags[] =
354 * Function given to ExpandGeneric() to obtain the list of values for -nargs.
358 get_user_cmd_nargs(xp, idx)
362 static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
365 * Function given to ExpandGeneric() to obtain the list of values for -nargs.
368 get_user_cmd_nargs(xp, idx)
369 ! expand_T *xp UNUSED;
372 static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
376 * Function given to ExpandGeneric() to obtain the list of values for -complete.
380 get_user_cmd_complete(xp, idx)
384 return (char_u *)command_complete[idx].name;
387 * Function given to ExpandGeneric() to obtain the list of values for -complete.
390 get_user_cmd_complete(xp, idx)
391 ! expand_T *xp UNUSED;
394 return (char_u *)command_complete[idx].name;
405 getout(1); /* this does not always pass on the exit code to the Manx
413 ! exarg_T *eap UNUSED;
415 getout(1); /* this does not always pass on the exit code to the Manx
435 ! exarg_T *eap UNUSED;
449 curbuf->b_flags |= BF_PRESERVED;
450 ml_preserve(curbuf, TRUE);
457 ! exarg_T *eap UNUSED;
459 curbuf->b_flags |= BF_PRESERVED;
460 ml_preserve(curbuf, TRUE);
464 * :tabs command: List tabs and their contents.
475 * :tabs command: List tabs and their contents.
479 ! exarg_T *eap UNUSED;
486 * ":edit <file>" command and alikes.
490 do_exedit(eap, old_curwin)
503 if (curbuf->b_ml.ml_mfp == NULL || curbuf->b_ml.ml_mfp->mf_fname == NULL)
504 MSG(_("No swap file"));
511 ! exarg_T *eap UNUSED;
513 if (curbuf->b_ml.ml_mfp == NULL || curbuf->b_ml.ml_mfp->mf_fname == NULL)
514 MSG(_("No swap file"));
518 * (1998-11-02 16:21:01 R. Edward Ralston <eralston@computer.org>)
525 #ifdef FEAT_SCROLLBIND
529 * (1998-11-02 16:21:01 R. Edward Ralston <eralston@computer.org>)
533 ! exarg_T *eap UNUSED;
535 #ifdef FEAT_SCROLLBIND
547 if (mch_dirname(NameBuff, MAXPATHL) == OK)
555 ! exarg_T *eap UNUSED;
557 if (mch_dirname(NameBuff, MAXPATHL) == OK)
569 if (eap->addr_count == 1) /* :undo 123 */
570 undo_time(eap->line2, FALSE, TRUE);
577 ! exarg_T *eap UNUSED;
579 if (eap->addr_count == 1) /* :undo 123 */
580 undo_time(eap->line2, FALSE, TRUE);
599 ! exarg_T *eap UNUSED;
606 * ":earlier" and ":later".
616 * ":redrawstatus": force redraw of status line(s)
623 #if defined(FEAT_WINDOWS)
624 int r = RedrawingDisabled;
627 * ":redrawstatus": force redraw of status line(s)
631 ! exarg_T *eap UNUSED;
633 #if defined(FEAT_WINDOWS)
634 int r = RedrawingDisabled;
638 #if ((defined(FEAT_SESSION) || defined(FEAT_EVAL)) && defined(vim_mkdir)) \
642 vim_mkdir_emsg(name, prot)
646 if (vim_mkdir(name, prot) != 0)
650 #if ((defined(FEAT_SESSION) || defined(FEAT_EVAL)) && defined(vim_mkdir)) \
653 vim_mkdir_emsg(name, prot)
657 if (vim_mkdir(name, prot) != 0)
670 if (*eap->arg != NUL)
677 ! exarg_T *eap UNUSED;
680 if (*eap->arg != NUL)
692 redraw_all_later(SOME_VALID);
699 ! exarg_T *eap UNUSED;
702 redraw_all_later(SOME_VALID);
706 * ":X": Get crypt key
713 (void)get_crypt_key(TRUE, TRUE);
717 * ":X": Get crypt key
721 ! exarg_T *eap UNUSED;
723 (void)get_crypt_key(TRUE, TRUE);
725 *** ../vim-7.2.173/src/ex_getln.c 2009-04-29 18:44:38.000000000 +0200
726 --- src/ex_getln.c 2009-05-15 20:49:22.000000000 +0200
729 * Return pointer to allocated string if there is a commandline, NULL
734 getcmdline(firstc, count, indent)
736 ! long count; /* only used for incremental search */
737 int indent; /* indent for inside conditionals */
741 * Return pointer to allocated string if there is a commandline, NULL
745 getcmdline(firstc, count, indent)
747 ! long count UNUSED; /* only used for incremental search */
748 int indent; /* indent for inside conditionals */
754 * Get an Ex command line for the ":" command.
758 ! getexline(c, dummy, indent)
759 int c; /* normally ':', NUL for ":append" */
760 ! void *dummy; /* cookie not used */
761 int indent; /* indent for inside conditionals */
763 /* When executing a register, remove ':' that's in front of each line. */
766 * Get an Ex command line for the ":" command.
769 ! getexline(c, cookie, indent)
770 int c; /* normally ':', NUL for ":append" */
771 ! void *cookie UNUSED;
772 int indent; /* indent for inside conditionals */
774 /* When executing a register, remove ':' that's in front of each line. */
777 * mappings or abbreviations.
778 * Returns a string in allocated memory or NULL.
782 ! getexmodeline(promptc, dummy, indent)
783 int promptc; /* normally ':', NUL for ":append" and '?' for
785 ! void *dummy; /* cookie not used */
786 int indent; /* indent for inside conditionals */
790 * mappings or abbreviations.
791 * Returns a string in allocated memory or NULL.
794 ! getexmodeline(promptc, cookie, indent)
795 int promptc; /* normally ':', NUL for ":append" and '?' for
797 ! void *cookie UNUSED;
798 int indent; /* indent for inside conditionals */
803 * Returns EXPAND_NOTHING when the character that triggered expansion should
804 * be inserted like a normal character.
808 showmatches(xp, wildmenu)
812 #define L_SHOWFILE(m) (showtail ? sm_gettail(files_found[m]) : files_found[m])
815 * Returns EXPAND_NOTHING when the character that triggered expansion should
816 * be inserted like a normal character.
819 showmatches(xp, wildmenu)
821 ! int wildmenu UNUSED;
823 #define L_SHOWFILE(m) (showtail ? sm_gettail(files_found[m]) : files_found[m])
825 *** ../vim-7.2.173/src/fileio.c 2009-05-13 20:47:07.000000000 +0200
826 --- src/fileio.c 2009-05-15 20:52:40.000000000 +0200
829 if (mch_stat((char *)IObuff, &st) < 0
830 || st.st_uid != st_old.st_uid
831 || st.st_gid != st_old.st_gid
832 ! || st.st_mode != perm)
835 /* Close the file before removing it, on MS-Windows we
837 if (mch_stat((char *)IObuff, &st) < 0
838 || st.st_uid != st_old.st_uid
839 || st.st_gid != st_old.st_gid
840 ! || (long)st.st_mode != perm)
843 /* Close the file before removing it, on MS-Windows we
846 else if (*ext == '.')
849 ! if (s - ptr > (size_t)8)
854 else if (*ext == '.')
857 ! if ((size_t)(s - ptr) > (size_t)8)
863 * return 2 if a message has been displayed.
864 * return 0 otherwise.
868 buf_check_timestamp(buf, focus)
870 ! int focus; /* called for GUI focus event */
875 * return 2 if a message has been displayed.
876 * return 0 otherwise.
879 buf_check_timestamp(buf, focus)
881 ! int focus UNUSED; /* called for GUI focus event */
887 /* Careful: autocommands may have made "buf" invalid! */
892 buf_store_time(buf, st, fname)
897 buf->b_mtime = (long)st->st_mtime;
898 buf->b_orig_size = (size_t)st->st_size;
900 /* Careful: autocommands may have made "buf" invalid! */
904 buf_store_time(buf, st, fname)
907 ! char_u *fname UNUSED;
909 buf->b_mtime = (long)st->st_mtime;
910 buf->b_orig_size = (size_t)st->st_size;
913 * The returned pointer is to allocated memory.
914 * The returned pointer is NULL if no valid name was found.
918 vim_tempname(extra_char)
919 ! int extra_char; /* character to use in the name instead of '?' */
922 char_u itmp[L_tmpnam]; /* use tmpnam() */
924 * The returned pointer is to allocated memory.
925 * The returned pointer is NULL if no valid name was found.
928 vim_tempname(extra_char)
929 ! int extra_char UNUSED; /* char to use in the name instead of '?' */
932 char_u itmp[L_tmpnam]; /* use tmpnam() */
936 * Try the entries in TEMPDIRNAMES to create the temp directory.
938 ! for (i = 0; i < sizeof(tempdirs) / sizeof(char *); ++i)
940 /* expand $TMP, leave room for "/v1100000/999999999" */
941 expand_env((char_u *)tempdirs[i], itmp, TEMPNAMELEN - 20);
944 * Try the entries in TEMPDIRNAMES to create the temp directory.
946 ! for (i = 0; i < (int)(sizeof(tempdirs) / sizeof(char *)); ++i)
948 /* expand $TMP, leave room for "/v1100000/999999999" */
949 expand_env((char_u *)tempdirs[i], itmp, TEMPNAMELEN - 20);
953 * Returns NULL when out of memory.
957 file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
959 char_u *pat_end; /* first char after pattern or NULL */
960 char *allow_dirs; /* Result passed back out in here */
961 ! int no_bslash; /* Don't use a backward slash as pathsep */
967 * Returns NULL when out of memory.
970 file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
972 char_u *pat_end; /* first char after pattern or NULL */
973 char *allow_dirs; /* Result passed back out in here */
974 ! int no_bslash UNUSED; /* Don't use a backward slash as pathsep */
978 *** ../vim-7.2.173/src/misc1.c 2009-04-29 11:00:09.000000000 +0200
979 --- src/misc1.c 2009-05-15 20:59:08.000000000 +0200
983 * return FAIL for failure, OK otherwise
987 del_bytes(count, fixpos_arg, use_delcombine)
990 ! int use_delcombine; /* 'delcombine' option applies */
996 * return FAIL for failure, OK otherwise
999 del_bytes(count, fixpos_arg, use_delcombine)
1002 ! int use_delcombine UNUSED; /* 'delcombine' option applies */
1004 char_u *oldp, *newp;
1006 *** ../vim-7.2.173/src/move.c 2008-11-15 16:05:30.000000000 +0100
1007 --- src/move.c 2009-05-15 21:00:06.000000000 +0200
1011 * Scroll the current window down by "line_count" logical lines. "CTRL-Y"
1015 scrolldown(line_count, byfold)
1017 ! int byfold; /* TRUE: count a closed fold as one line */
1019 long done = 0; /* total # of physical lines done */
1023 * Scroll the current window down by "line_count" logical lines. "CTRL-Y"
1026 scrolldown(line_count, byfold)
1028 ! int byfold UNUSED; /* TRUE: count a closed fold as one line */
1030 long done = 0; /* total # of physical lines done */
1035 * Scroll the current window up by "line_count" logical lines. "CTRL-E"
1039 scrollup(line_count, byfold)
1041 ! int byfold; /* TRUE: count a closed fold as one line */
1043 #if defined(FEAT_FOLDING) || defined(FEAT_DIFF)
1047 * Scroll the current window up by "line_count" logical lines. "CTRL-E"
1050 scrollup(line_count, byfold)
1052 ! int byfold UNUSED; /* TRUE: count a closed fold as one line */
1054 #if defined(FEAT_FOLDING) || defined(FEAT_DIFF)
1056 *** ../vim-7.2.173/src/normal.c 2009-04-29 17:39:17.000000000 +0200
1057 --- src/normal.c 2009-05-15 21:08:07.000000000 +0200
1062 /* Fill the index table with a one to one relation. */
1063 ! for (i = 0; i < NV_CMDS_SIZE; ++i)
1066 /* Sort the commands by the command character. */
1067 qsort((void *)&nv_cmd_idx, (size_t)NV_CMDS_SIZE, sizeof(short), nv_compare);
1069 /* Find the first entry that can't be indexed by the command character. */
1070 ! for (i = 0; i < NV_CMDS_SIZE; ++i)
1071 if (i != nv_cmds[nv_cmd_idx[i]].cmd_char)
1073 nv_max_linear = i - 1;
1077 /* Fill the index table with a one to one relation. */
1078 ! for (i = 0; i < (int)NV_CMDS_SIZE; ++i)
1081 /* Sort the commands by the command character. */
1082 qsort((void *)&nv_cmd_idx, (size_t)NV_CMDS_SIZE, sizeof(short), nv_compare);
1084 /* Find the first entry that can't be indexed by the command character. */
1085 ! for (i = 0; i < (int)NV_CMDS_SIZE; ++i)
1086 if (i != nv_cmds[nv_cmd_idx[i]].cmd_char)
1088 nv_max_linear = i - 1;
1092 * Execute a command in Normal mode.
1096 normal_cmd(oap, toplevel)
1098 ! int toplevel; /* TRUE when called from main() */
1100 cmdarg_T ca; /* command arguments */
1104 * Execute a command in Normal mode.
1107 normal_cmd(oap, toplevel)
1109 ! int toplevel UNUSED; /* TRUE when called from main() */
1111 cmdarg_T ca; /* command arguments */
1116 * Handle the "g@" operator: call 'operatorfunc'.
1127 * Handle the "g@" operator: call 'operatorfunc'.
1131 ! oparg_T *oap UNUSED;
1137 * Command character that doesn't do anything, but unlike nv_ignore() does
1138 * start edit(). Used for "startinsert" executed while starting up.
1148 * Command character that doesn't do anything, but unlike nv_ignore() does
1149 * start edit(). Used for "startinsert" executed while starting up.
1153 ! cmdarg_T *cap UNUSED;
1159 if (cap->oap->op_type != OP_NOP
1160 && (cap->oap->start.lnum > curbuf->b_ml.ml_line_count
1161 || cap->oap->start.col >
1162 ! STRLEN(ml_get(cap->oap->start.lnum))))
1163 clearopbeep(cap->oap);
1167 if (cap->oap->op_type != OP_NOP
1168 && (cap->oap->start.lnum > curbuf->b_ml.ml_line_count
1169 || cap->oap->start.col >
1170 ! (colnr_T)STRLEN(ml_get(cap->oap->start.lnum))))
1171 clearopbeep(cap->oap);
1176 for (n = cap->count1; n > 0; --n)
1178 if ((!PAST_LINE && oneright() == FAIL)
1179 ! || (PAST_LINE && *ml_get_cursor() == NUL))
1182 * <Space> wraps to next line if 'whichwrap' has 's'.
1184 for (n = cap->count1; n > 0; --n)
1186 if ((!PAST_LINE && oneright() == FAIL)
1187 ! #ifdef FEAT_VISUAL
1188 ! || (PAST_LINE && *ml_get_cursor() == NUL)
1193 * <Space> wraps to next line if 'whichwrap' has 's'.
1194 *** ../vim-7.2.173/src/option.c 2009-03-18 15:40:03.000000000 +0100
1195 --- src/option.c 2009-05-15 21:08:50.000000000 +0200
1198 * When "set_sid" is zero set the scriptID to current_SID. When "set_sid" is
1199 * SID_NONE don't set the scriptID. Otherwise set the scriptID to "set_sid".
1203 set_string_option_direct(name, opt_idx, val, opt_flags, set_sid)
1207 int opt_flags; /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */
1213 * When "set_sid" is zero set the scriptID to current_SID. When "set_sid" is
1214 * SID_NONE don't set the scriptID. Otherwise set the scriptID to "set_sid".
1217 set_string_option_direct(name, opt_idx, val, opt_flags, set_sid)
1221 int opt_flags; /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */
1222 ! int set_sid UNUSED;
1229 * Check for NULL pointers in a winopt_T and replace them with empty_option.
1237 check_string_option(&wop->wo_fdi);
1240 * Check for NULL pointers in a winopt_T and replace them with empty_option.
1244 ! winopt_T *wop UNUSED;
1247 check_string_option(&wop->wo_fdi);
1251 * Free the allocated memory inside a winopt_T.
1259 clear_string_option(&wop->wo_fdi);
1262 * Free the allocated memory inside a winopt_T.
1266 ! winopt_T *wop UNUSED;
1269 clear_string_option(&wop->wo_fdi);
1270 *** ../vim-7.2.173/src/os_unix.c 2009-05-13 12:46:36.000000000 +0200
1271 --- src/os_unix.c 2009-05-15 21:13:43.000000000 +0200
1274 * Return total amount of memory available in Kbyte.
1275 * Doesn't change when memory has been allocated.
1279 mch_total_mem(special)
1283 return ulimit(3, 0L) >> 10; /* always 32MB? */
1285 * Return total amount of memory available in Kbyte.
1286 * Doesn't change when memory has been allocated.
1289 mch_total_mem(special)
1290 ! int special UNUSED;
1293 return ulimit(3, 0L) >> 10; /* always 32MB? */
1296 * Let me try it with a few tricky defines from my own osdef.h (jw).
1298 #if defined(SIGWINCH)
1301 sig_winch SIGDEFARG(sigarg)
1307 * Check_win checks whether we have an interactive stdout.
1311 mch_check_win(argc, argv)
1319 * Check_win checks whether we have an interactive stdout.
1322 mch_check_win(argc, argv)
1324 ! char **argv UNUSED;
1332 /* Catch file names which are too long. */
1333 ! if (retval == FAIL || STRLEN(buf) + STRLEN(fname) >= len)
1336 /* Do not append ".", "/dir/." is equal to "/dir". */
1340 /* Catch file names which are too long. */
1341 ! if (retval == FAIL || (int)(STRLEN(buf) + STRLEN(fname)) >= len)
1344 /* Do not append ".", "/dir/." is equal to "/dir". */
1352 vim_acl_T ret = NULL;
1353 #ifdef HAVE_POSIX_ACL
1358 ! char_u *fname UNUSED;
1360 vim_acl_T ret = NULL;
1361 #ifdef HAVE_POSIX_ACL
1366 mch_set_acl(fname, aclent)
1374 mch_set_acl(fname, aclent)
1375 ! char_u *fname UNUSED;
1382 * Set hidden flag for "name".
1389 /* can't hide a file */
1393 * Set hidden flag for "name".
1397 ! char_u *name UNUSED;
1399 /* can't hide a file */
1404 * set screen mode, always fails.
1411 EMSG(_(e_screenmode));
1415 * set screen mode, always fails.
1419 ! char_u *arg UNUSED;
1421 EMSG(_(e_screenmode));
1426 s = vim_strchr(lp + written, NL);
1427 len = write(toshell_fd, (char *)lp + written,
1428 ! s == NULL ? l : s - (lp + written));
1432 /* Finished a line, add a NL, unless this line
1433 * should not have one. */
1436 s = vim_strchr(lp + written, NL);
1437 len = write(toshell_fd, (char *)lp + written,
1439 ! : (size_t)(s - (lp + written)));
1441 ! if (len == (int)l)
1443 /* Finished a line, add a NL, unless this line
1444 * should not have one. */
1447 * Returns also, when a request from Sniff is waiting -- toni.
1448 * Or when a Linux GPM mouse event is waiting.
1451 #if defined(__BEOS__)
1457 RealWaitForChar(fd, msec, check_for_gpm)
1460 ! int *check_for_gpm;
1463 #if defined(FEAT_XCLIPBOARD) || defined(USE_XSMP) || defined(FEAT_MZSCHEME)
1465 RealWaitForChar(fd, msec, check_for_gpm)
1468 ! int *check_for_gpm UNUSED;
1471 #if defined(FEAT_XCLIPBOARD) || defined(USE_XSMP) || defined(FEAT_MZSCHEME)
1474 i = fread((char *)buffer, 1, len, fd);
1476 mch_remove(tempname);
1479 /* unexpected read error */
1480 EMSG2(_(e_notread), tempname);
1482 i = fread((char *)buffer, 1, len, fd);
1484 mch_remove(tempname);
1485 ! if (i != (int)len)
1487 /* unexpected read error */
1488 EMSG2(_(e_notread), tempname);
1491 if (shell_style == STYLE_PRINT && !did_find_nul)
1493 /* If there is a NUL, set did_find_nul, else set check_spaces */
1494 ! if (len && (int)STRLEN(buffer) < len - 1)
1495 did_find_nul = TRUE;
1497 check_spaces = TRUE;
1499 if (shell_style == STYLE_PRINT && !did_find_nul)
1501 /* If there is a NUL, set did_find_nul, else set check_spaces */
1502 ! if (len && (int)STRLEN(buffer) < (int)len - 1)
1503 did_find_nul = TRUE;
1505 check_spaces = TRUE;
1506 *** ../vim-7.2.173/src/os_unix.h 2009-05-13 12:46:36.000000000 +0200
1507 --- src/os_unix.h 2009-05-15 21:10:31.000000000 +0200
1510 # define SIGDUMMYARG 0, 0, (struct sigcontext *)0
1512 # define SIGPROTOARG (int)
1513 ! # define SIGDEFARG(s) (s) int s;
1514 # define SIGDUMMYARG 0
1518 # define SIGDUMMYARG 0, 0, (struct sigcontext *)0
1520 # define SIGPROTOARG (int)
1521 ! # define SIGDEFARG(s) (s) int s UNUSED;
1522 # define SIGDUMMYARG 0
1525 *** ../vim-7.2.173/src/regexp.c 2009-02-21 22:03:06.000000000 +0100
1526 --- src/regexp.c 2009-05-15 21:14:18.000000000 +0200
1530 if ((*pp)[1] == ':')
1532 ! for (i = 0; i < sizeof(class_names) / sizeof(*class_names); ++i)
1533 if (STRNCMP(*pp + 2, class_names[i], STRLEN(class_names[i])) == 0)
1535 *pp += STRLEN(class_names[i]) + 2;
1538 if ((*pp)[1] == ':')
1540 ! for (i = 0; i < (int)(sizeof(class_names) / sizeof(*class_names)); ++i)
1541 if (STRNCMP(*pp + 2, class_names[i], STRLEN(class_names[i])) == 0)
1543 *pp += STRLEN(class_names[i]) + 2;
1546 * Match a regexp against a string ("line" points to the string) or multiple
1547 * lines ("line" is NULL, use reg_getline()).
1551 vim_regexec_both(line, col, tm)
1553 colnr_T col; /* column to start looking for match */
1554 ! proftime_T *tm; /* timeout limit or NULL */
1559 * Match a regexp against a string ("line" points to the string) or multiple
1560 * lines ("line" is NULL, use reg_getline()).
1563 vim_regexec_both(line, col, tm)
1565 colnr_T col; /* column to start looking for match */
1566 ! proftime_T *tm UNUSED; /* timeout limit or NULL */
1570 *** ../vim-7.2.173/src/search.c 2009-04-22 18:43:06.000000000 +0200
1571 --- src/search.c 2009-05-15 21:16:36.000000000 +0200
1574 * When FEAT_EVAL is defined, returns the index of the first matching
1575 * subpattern plus one; one if there was none.
1579 searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
1580 win_T *win; /* window to search in; can be NULL for a
1585 int pat_use; /* which pattern to use when "pat" is empty */
1586 linenr_T stop_lnum; /* stop after this line number when != 0 */
1587 ! proftime_T *tm; /* timeout limit or NULL */
1590 linenr_T lnum; /* no init to shut up Apollo cc */
1593 int pat_use; /* which pattern to use when "pat" is empty */
1594 linenr_T stop_lnum; /* stop after this line number when != 0 */
1595 ! proftime_T *tm UNUSED; /* timeout limit or NULL */
1598 linenr_T lnum; /* no init to shut up Apollo cc */
1601 int save_called_emsg = called_emsg;
1602 #ifdef FEAT_SEARCH_EXTRA
1603 int break_loop = FALSE;
1605 - # define break_loop FALSE
1608 if (search_regcomp(pat, RE_SEARCH, pat_use,
1614 if (!p_ws || stop_lnum != 0 || got_int || called_emsg
1615 ! || break_loop || found || loop)
1622 if (!p_ws || stop_lnum != 0 || got_int || called_emsg
1623 ! #ifdef FEAT_SEARCH_EXTRA
1632 give_warning((char_u *)_(dir == BACKWARD
1633 ? top_bot_msg : bot_top_msg), TRUE);
1635 ! if (got_int || called_emsg || break_loop)
1638 while (--count > 0 && found); /* stop after count matches or no match */
1640 give_warning((char_u *)_(dir == BACKWARD
1641 ? top_bot_msg : bot_top_msg), TRUE);
1643 ! if (got_int || called_emsg
1644 ! #ifdef FEAT_SEARCH_EXTRA
1650 while (--count > 0 && found); /* stop after count matches or no match */
1651 *** ../vim-7.2.173/src/tag.c 2009-02-23 00:53:35.000000000 +0100
1652 --- src/tag.c 2009-05-15 21:16:59.000000000 +0200
1656 * Print the tag stack
1667 * Print the tag stack
1671 ! exarg_T *eap UNUSED;
1677 * Callback function for finding all "tags" and "tags-??" files in
1678 * 'runtimepath' doc directories.
1682 found_tagfile_cb(fname, cookie)
1686 if (ga_grow(&tag_fnames, 1) == OK)
1687 ((char_u **)(tag_fnames.ga_data))[tag_fnames.ga_len++] =
1689 * Callback function for finding all "tags" and "tags-??" files in
1690 * 'runtimepath' doc directories.
1693 found_tagfile_cb(fname, cookie)
1695 ! void *cookie UNUSED;
1697 if (ga_grow(&tag_fnames, 1) == OK)
1698 ((char_u **)(tag_fnames.ga_data))[tag_fnames.ga_len++] =
1699 *** ../vim-7.2.173/src/version.c 2009-05-14 22:19:19.000000000 +0200
1700 --- src/version.c 2009-05-15 21:21:44.000000000 +0200
1704 { /* Add new patch number below this line */
1710 TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT
1711 SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE
1712 KILLED BY THE RABBIT)
1713 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
1715 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
1716 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
1717 \\\ download, build and distribute -- http://www.A-A-P.org ///
1718 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///