diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-04-09 20:42:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-04-09 20:42:26 +0200 |
commit | b345d49e06fd1acb51a4f69ecf50d1013b2e44d6 (patch) | |
tree | 0b3e537abe78bce92ff84e156c564723a20d9715 /src | |
parent | bd2f3c3ec6df83a1ce25aea52cef24671a3f1124 (diff) | |
download | vim-b345d49e06fd1acb51a4f69ecf50d1013b2e44d6.zip |
updated for version 7.3.495
Problem: Compiler warnings.
Solution: Add function declaration. Remove "offset" argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc1.c | 12 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/misc1.c b/src/misc1.c index 34359a0b0..f9513e231 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -4972,6 +4972,7 @@ static int cin_isif __ARGS((char_u *)); static int cin_iselse __ARGS((char_u *)); static int cin_isdo __ARGS((char_u *)); static int cin_iswhileofdo __ARGS((char_u *, linenr_T, int)); +static int cin_is_if_for_while_before_offset __ARGS((char_u *line, int *poffset)); static int cin_iswhileofdo_end __ARGS((int terminated, int ind_maxparen, int ind_maxcomment)); static int cin_isbreak __ARGS((char_u *)); static int cin_is_cpp_baseclass __ARGS((colnr_T *col)); @@ -5771,17 +5772,17 @@ cin_iswhileofdo(p, lnum, ind_maxparen) /* XXX */ } /* - * Check whether in "p" there is an "if", "for" or "while" before offset. + * Check whether in "p" there is an "if", "for" or "while" before "*poffset". * Return 0 if there is none. * Otherwise return !0 and update "*poffset" to point to the place where the * string was found. */ static int -cin_is_if_for_while_before_offset(line, offset, poffset) +cin_is_if_for_while_before_offset(line, poffset) char_u *line; - size_t offset; int *poffset; { + int offset = *poffset; if (offset-- < 2) return 0; @@ -5805,8 +5806,8 @@ cin_is_if_for_while_before_offset(line, offset, poffset) goto probablyFound; } } - return 0; + probablyFound: if (!offset || !vim_isIDc(line[offset - 1])) { @@ -6890,8 +6891,7 @@ get_c_indent() line = ml_get(outermost.lnum); is_if_for_while = - cin_is_if_for_while_before_offset(line, outermost.col, - &outermost.col); + cin_is_if_for_while_before_offset(line, &outermost.col); } amount = skip_label(our_paren_pos.lnum, &look, ind_maxcomment); diff --git a/src/version.c b/src/version.c index 0d8348b46..65b8c5825 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 495, +/**/ 494, /**/ 493, |