Skip to content

Commit 7bf7f0b

Browse files
avargitster
authored andcommitted
parse-options.h: make the "flags" in "struct option" an enum
Change the "flags" members of "struct option" to refer to their corresponding "enum" defined earlier in the file. The benefit of changing this to an enum isn't as great as with some "enum parse_opt_type" as we'll always check this as a bitfield, so we can't rely on the compiler checking "case" arms for us. But let's do it for consistency with the rest of the file. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1b88735 commit 7bf7f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse-options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ struct option {
134134
const char *argh;
135135
const char *help;
136136

137-
int flags;
137+
enum parse_opt_option_flags flags;
138138
parse_opt_cb *callback;
139139
intptr_t defval;
140140
parse_opt_ll_cb *ll_callback;

0 commit comments

Comments
 (0)