diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ebrowse.c | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 28 |
2 files changed, 16 insertions, 17 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 623911027ce..51d181997b1 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -3059,8 +3059,7 @@ class_definition (struct sym *containing, int tag, int flags, int nested) | |||
| 3059 | MATCH until we see something like `;' or `{'. */ | 3059 | MATCH until we see something like `;' or `{'. */ |
| 3060 | while (!LOOKING_AT3 (';', YYEOF, '{')) | 3060 | while (!LOOKING_AT3 (';', YYEOF, '{')) |
| 3061 | MATCH (); | 3061 | MATCH (); |
| 3062 | done = 1; | 3062 | FALLTHROUGH; |
| 3063 | |||
| 3064 | case '{': | 3063 | case '{': |
| 3065 | done = 1; | 3064 | done = 1; |
| 3066 | break; | 3065 | break; |
| @@ -3184,7 +3183,7 @@ declaration (int flags) | |||
| 3184 | free (id); | 3183 | free (id); |
| 3185 | return; | 3184 | return; |
| 3186 | } | 3185 | } |
| 3187 | 3186 | FALLTHROUGH; | |
| 3188 | case '=': | 3187 | case '=': |
| 3189 | /* Assumed to be the start of an initialization in this | 3188 | /* Assumed to be the start of an initialization in this |
| 3190 | context. */ | 3189 | context. */ |
diff --git a/lib-src/etags.c b/lib-src/etags.c index 015cbbe0ef3..6f280d8ab40 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -1157,7 +1157,7 @@ main (int argc, char **argv) | |||
| 1157 | case 'c': | 1157 | case 'c': |
| 1158 | /* Backward compatibility: support obsolete --ignore-case-regexp. */ | 1158 | /* Backward compatibility: support obsolete --ignore-case-regexp. */ |
| 1159 | optarg = concat (optarg, "i", ""); /* memory leak here */ | 1159 | optarg = concat (optarg, "i", ""); /* memory leak here */ |
| 1160 | /* FALLTHRU */ | 1160 | FALLTHROUGH; |
| 1161 | case 'r': | 1161 | case 'r': |
| 1162 | argbuffer[current_arg].arg_type = at_regexp; | 1162 | argbuffer[current_arg].arg_type = at_regexp; |
| 1163 | argbuffer[current_arg].what = optarg; | 1163 | argbuffer[current_arg].what = optarg; |
| @@ -1192,7 +1192,7 @@ main (int argc, char **argv) | |||
| 1192 | case 't': typedefs = true; break; | 1192 | case 't': typedefs = true; break; |
| 1193 | case 'T': typedefs = typedefs_or_cplusplus = true; break; | 1193 | case 'T': typedefs = typedefs_or_cplusplus = true; break; |
| 1194 | case 'u': update = true; break; | 1194 | case 'u': update = true; break; |
| 1195 | case 'v': vgrind_style = true; /*FALLTHRU*/ | 1195 | case 'v': vgrind_style = true; FALLTHROUGH; |
| 1196 | case 'x': cxref_style = true; break; | 1196 | case 'x': cxref_style = true; break; |
| 1197 | case 'w': no_warnings = true; break; | 1197 | case 'w': no_warnings = true; break; |
| 1198 | default: | 1198 | default: |
| @@ -2564,7 +2564,7 @@ hash (const char *str, int len) | |||
| 2564 | { | 2564 | { |
| 2565 | default: | 2565 | default: |
| 2566 | hval += asso_values[(unsigned char) str[2]]; | 2566 | hval += asso_values[(unsigned char) str[2]]; |
| 2567 | /*FALLTHROUGH*/ | 2567 | FALLTHROUGH; |
| 2568 | case 2: | 2568 | case 2: |
| 2569 | hval += asso_values[(unsigned char) str[1]]; | 2569 | hval += asso_values[(unsigned char) str[1]]; |
| 2570 | break; | 2570 | break; |
| @@ -3013,7 +3013,7 @@ consider_token (char *str, int len, int c, int *c_extp, | |||
| 3013 | *c_extp = (*c_extp | C_PLPL) & ~C_AUTO; | 3013 | *c_extp = (*c_extp | C_PLPL) & ~C_AUTO; |
| 3014 | if (toktype == st_C_template) | 3014 | if (toktype == st_C_template) |
| 3015 | break; | 3015 | break; |
| 3016 | /* FALLTHRU */ | 3016 | FALLTHROUGH; |
| 3017 | case st_C_struct: | 3017 | case st_C_struct: |
| 3018 | case st_C_enum: | 3018 | case st_C_enum: |
| 3019 | if (parlev == 0 | 3019 | if (parlev == 0 |
| @@ -3176,7 +3176,7 @@ consider_token (char *str, int len, int c, int *c_extp, | |||
| 3176 | default: | 3176 | default: |
| 3177 | break; | 3177 | break; |
| 3178 | } | 3178 | } |
| 3179 | /* FALLTHRU */ | 3179 | FALLTHROUGH; |
| 3180 | case fvnameseen: | 3180 | case fvnameseen: |
| 3181 | if (len >= 10 && strneq (str+len-10, "::operator", 10)) | 3181 | if (len >= 10 && strneq (str+len-10, "::operator", 10)) |
| 3182 | { | 3182 | { |
| @@ -3387,7 +3387,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 3387 | case '\0': | 3387 | case '\0': |
| 3388 | /* Hmmm, something went wrong. */ | 3388 | /* Hmmm, something went wrong. */ |
| 3389 | CNL (); | 3389 | CNL (); |
| 3390 | /* FALLTHRU */ | 3390 | FALLTHROUGH; |
| 3391 | case '\'': | 3391 | case '\'': |
| 3392 | inchar = false; | 3392 | inchar = false; |
| 3393 | break; | 3393 | break; |
| @@ -3828,7 +3828,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 3828 | || (members | 3828 | || (members |
| 3829 | && plainc && instruct)) | 3829 | && plainc && instruct)) |
| 3830 | make_C_tag (true); /* a function */ | 3830 | make_C_tag (true); /* a function */ |
| 3831 | /* FALLTHRU */ | 3831 | FALLTHROUGH; |
| 3832 | default: | 3832 | default: |
| 3833 | fvextern = false; | 3833 | fvextern = false; |
| 3834 | fvdef = fvnone; | 3834 | fvdef = fvnone; |
| @@ -3838,7 +3838,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 3838 | else | 3838 | else |
| 3839 | token.valid = false; | 3839 | token.valid = false; |
| 3840 | } /* switch (fvdef) */ | 3840 | } /* switch (fvdef) */ |
| 3841 | /* FALLTHRU */ | 3841 | FALLTHROUGH; |
| 3842 | default: | 3842 | default: |
| 3843 | if (!instruct) | 3843 | if (!instruct) |
| 3844 | typdef = tnone; | 3844 | typdef = tnone; |
| @@ -3926,7 +3926,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 3926 | || (globals && bracelev == 0 | 3926 | || (globals && bracelev == 0 |
| 3927 | && (!fvextern || declarations))) | 3927 | && (!fvextern || declarations))) |
| 3928 | make_C_tag (false); /* a variable */ | 3928 | make_C_tag (false); /* a variable */ |
| 3929 | /* FALLTHRU */ | 3929 | FALLTHROUGH; |
| 3930 | default: | 3930 | default: |
| 3931 | fvdef = fvnone; | 3931 | fvdef = fvnone; |
| 3932 | } | 3932 | } |
| @@ -3959,7 +3959,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 3959 | fvdef = fignore; | 3959 | fvdef = fignore; |
| 3960 | break; | 3960 | break; |
| 3961 | } | 3961 | } |
| 3962 | /* FALLTHRU */ | 3962 | FALLTHROUGH; |
| 3963 | case foperator: | 3963 | case foperator: |
| 3964 | fvdef = fstartlist; | 3964 | fvdef = fstartlist; |
| 3965 | break; | 3965 | break; |
| @@ -4049,7 +4049,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 4049 | } | 4049 | } |
| 4050 | } | 4050 | } |
| 4051 | make_C_tag (true); /* a function */ | 4051 | make_C_tag (true); /* a function */ |
| 4052 | /* FALLTHRU */ | 4052 | FALLTHROUGH; |
| 4053 | case fignore: | 4053 | case fignore: |
| 4054 | fvdef = fvnone; | 4054 | fvdef = fvnone; |
| 4055 | break; | 4055 | break; |
| @@ -4142,7 +4142,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 4142 | if ((members && bracelev == 1) | 4142 | if ((members && bracelev == 1) |
| 4143 | || (globals && bracelev == 0 && (!fvextern || declarations))) | 4143 | || (globals && bracelev == 0 && (!fvextern || declarations))) |
| 4144 | make_C_tag (false); /* a variable */ | 4144 | make_C_tag (false); /* a variable */ |
| 4145 | /* FALLTHRU */ | 4145 | FALLTHROUGH; |
| 4146 | default: | 4146 | default: |
| 4147 | fvdef = vignore; | 4147 | fvdef = vignore; |
| 4148 | } | 4148 | } |
| @@ -4169,7 +4169,7 @@ C_entries (int c_ext, FILE *inf) | |||
| 4169 | objdef = omethodsign; | 4169 | objdef = omethodsign; |
| 4170 | break; | 4170 | break; |
| 4171 | } | 4171 | } |
| 4172 | /* FALLTHRU */ | 4172 | FALLTHROUGH; |
| 4173 | resetfvdef: | 4173 | resetfvdef: |
| 4174 | case '#': case '~': case '&': case '%': case '/': | 4174 | case '#': case '~': case '&': case '%': case '/': |
| 4175 | case '|': case '^': case '!': case '.': case '?': | 4175 | case '|': case '^': case '!': case '.': case '?': |
| @@ -6354,7 +6354,7 @@ add_regex (char *regexp_pattern, language *lang) | |||
| 6354 | break; | 6354 | break; |
| 6355 | case 's': | 6355 | case 's': |
| 6356 | single_line = true; | 6356 | single_line = true; |
| 6357 | /* FALLTHRU */ | 6357 | FALLTHROUGH; |
| 6358 | case 'm': | 6358 | case 'm': |
| 6359 | multi_line = true; | 6359 | multi_line = true; |
| 6360 | need_filebuf = true; | 6360 | need_filebuf = true; |