]> git.ozlabs.org Git - ccan/commitdiff
opt: add more user-available bits.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 6 Sep 2024 05:32:18 +0000 (15:02 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 6 Sep 2024 05:32:18 +0000 (15:02 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/opt/opt.h

index e0331be264230cb57a100f30e26a6f119bf6ca6c..d6f5634e9b509117968a0555d09617709c3df1a0 100644 (file)
@@ -530,7 +530,7 @@ struct opt_table *opt_find_short(char arg);
  * You can set bits in type e.g. (1<<OPT_USER_START) to (1<<OPT_USER_END)
  * when calling _opt_register. */
 #define OPT_USER_START 8
-#define OPT_USER_END 15
+#define OPT_USER_END 30
 
 /* Below here are private declarations. */
 /* You can use this directly to build tables, but the macros will ensure
@@ -540,7 +540,7 @@ enum opt_type {
        OPT_HASARG = 2,         /* -f arg|--foo=arg|--foo arg */
        OPT_SUBTABLE = 4,       /* Actually, longopt points to a subtable... */
        OPT_EARLY = 8,          /* Parse this from opt_early_parse() only. */
-       OPT_END = 16,           /* End of the table. */
+       OPT_END = 31,           /* End of the table. */
 
        /* Make sure no compiler will assume we never have large
         * values in the enum! */