diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-06-09 14:49:57 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-06-09 14:55:45 -0400 |
commit | 7b5d98877622f2bea24c9dd745dfcf312df31a87 (patch) | |
tree | bbb03b5e7663bf0c24aaf8cfc95741d9bf98cb0c /parse.c | |
parent | 41c148c4bf835fca788e6990cb8ea8651bb55927 (diff) | |
download | bfs-7b5d98877622f2bea24c9dd745dfcf312df31a87.tar.xz |
util: Rename fallthrough to BFS_FALLTHROUGH
This avoids shadowing the actually standard name fallthrough.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -961,16 +961,16 @@ static struct expr *parse_time(struct parser_state *state, int field, int arg2) switch (*tail) { case 'w': time *= 7; - fallthrough; + BFS_FALLTHROUGH; case 'd': time *= 24; - fallthrough; + BFS_FALLTHROUGH; case 'h': time *= 60; - fallthrough; + BFS_FALLTHROUGH; case 'm': time *= 60; - fallthrough; + BFS_FALLTHROUGH; case 's': break; default: @@ -1873,7 +1873,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct case MODE_CLAUSE: who = 0; mstate = MODE_WHO; - fallthrough; + BFS_FALLTHROUGH; case MODE_WHO: switch (*i) { @@ -1900,7 +1900,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct case MODE_EQUALS: expr->file_mode &= ~who; expr->dir_mode &= ~who; - fallthrough; + BFS_FALLTHROUGH; case MODE_PLUS: expr->file_mode |= file_change; expr->dir_mode |= dir_change; @@ -1910,7 +1910,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct expr->dir_mode &= ~dir_change; break; } - fallthrough; + BFS_FALLTHROUGH; case MODE_ACTION: if (who == 0) { @@ -1992,7 +1992,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct break; case 'x': file_change |= who & 0111; - fallthrough; + BFS_FALLTHROUGH; case 'X': dir_change |= who & 0111; break; @@ -2055,7 +2055,7 @@ static struct expr *parse_perm(struct parser_state *state, int field, int arg2) ++mode; break; } - fallthrough; + BFS_FALLTHROUGH; default: expr->mode_cmp = MODE_EXACT; break; |