summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-08 19:07:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-10-08 21:13:11 (GMT)
commit7bf7f0ba05b999e890f5738e08a7f5f70b71c633 (patch)
treeea281e250fbd1edfaf413e9d9d34e14f5390d843 /parse-options.h
parent1b887353d75f62c957e04c7d6ff706142c761a4c (diff)
downloadgit-7bf7f0ba05b999e890f5738e08a7f5f70b71c633.zip
git-7bf7f0ba05b999e890f5738e08a7f5f70b71c633.tar.gz
git-7bf7f0ba05b999e890f5738e08a7f5f70b71c633.tar.bz2
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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.h')
-rw-r--r--parse-options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-options.h b/parse-options.h
index a1c7c86..74b66ba 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -134,7 +134,7 @@ struct option {
const char *argh;
const char *help;
- int flags;
+ enum parse_opt_option_flags flags;
parse_opt_cb *callback;
intptr_t defval;
parse_opt_ll_cb *ll_callback;