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 {
4646 PARSE_OPT_COMP_ARG = 1024
4747};
4848
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+
4958struct option ;
5059typedef int parse_opt_cb (const struct option * , const char * arg , int unset );
5160
@@ -241,15 +250,6 @@ const char *optname(const struct option *opt, int flags);
241250
242251/*----- incremental advanced APIs -----*/
243252
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-
253253/*
254254 * It's okay for the caller to consume argv/argc in the usual way.
255255 * 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