File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,15 @@ enum parse_opt_option_flags {
46
46
PARSE_OPT_COMP_ARG = 1024
47
47
};
48
48
49
+ enum parse_opt_result {
50
+ PARSE_OPT_COMPLETE = -3 ,
51
+ PARSE_OPT_HELP = -2 ,
52
+ PARSE_OPT_ERROR = -1 , /* must be the same as error() */
53
+ PARSE_OPT_DONE = 0 , /* fixed so that "return 0" works */
54
+ PARSE_OPT_NON_OPTION ,
55
+ PARSE_OPT_UNKNOWN
56
+ };
57
+
49
58
struct option ;
50
59
typedef int parse_opt_cb (const struct option * , const char * arg , int unset );
51
60
@@ -241,15 +250,6 @@ const char *optname(const struct option *opt, int flags);
241
250
242
251
/*----- incremental advanced APIs -----*/
243
252
244
- enum parse_opt_result {
245
- PARSE_OPT_COMPLETE = -3 ,
246
- PARSE_OPT_HELP = -2 ,
247
- PARSE_OPT_ERROR = -1 , /* must be the same as error() */
248
- PARSE_OPT_DONE = 0 , /* fixed so that "return 0" works */
249
- PARSE_OPT_NON_OPTION ,
250
- PARSE_OPT_UNKNOWN
251
- };
252
-
253
253
/*
254
254
* It's okay for the caller to consume argv/argc in the usual way.
255
255
* Other fields of that structure are private to parse-options and should not
You can’t perform that action at this time.
0 commit comments