@@ -12,7 +12,6 @@ enum parse_opt_type {
1212 OPTION_NEGBIT ,
1313 OPTION_COUNTUP ,
1414 OPTION_SET_INT ,
15- OPTION_SET_PTR ,
1615 OPTION_CMDMODE ,
1716 /* options with arguments (usually) */
1817 OPTION_STRING ,
@@ -96,7 +95,7 @@ typedef int parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
9695 *
9796 * `defval`::
9897 * default value to fill (*->value) with for PARSE_OPT_OPTARG.
99- * OPTION_{BIT,SET_INT,SET_PTR } store the {mask,integer,pointer} to put in
98+ * OPTION_{BIT,SET_INT} store the {mask,integer,pointer} to put in
10099 * the value when met.
101100 * CALLBACKS can use it like they want.
102101 */
@@ -128,8 +127,6 @@ struct option {
128127#define OPT_BOOL (s , l , v , h ) OPT_SET_INT(s, l, v, h, 1)
129128#define OPT_HIDDEN_BOOL (s , l , v , h ) { OPTION_SET_INT, (s), (l), (v), NULL, \
130129 (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
131- #define OPT_SET_PTR (s , l , v , h , p ) { OPTION_SET_PTR, (s), (l), (v), NULL, \
132- (h), PARSE_OPT_NOARG, NULL, (intptr_t)(p) }
133130#define OPT_CMDMODE (s , l , v , h , i ) { OPTION_CMDMODE, (s), (l), (v), NULL, \
134131 (h), PARSE_OPT_NOARG|PARSE_OPT_NONEG, NULL, (i) }
135132#define OPT_INTEGER (s , l , v , h ) { OPTION_INTEGER, (s), (l), (v), N_("n"), (h) }
0 commit comments