summaryrefslogtreecommitdiffstats
path: root/ctxopt.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2019-11-23 14:24:36 +0100
committerpgen <p.gen.progs@gmail.com>2019-11-23 14:24:36 +0100
commitb741f94da993907fa4c17eba814b779cf47e1aa0 (patch)
tree4e518fe0009d8861ecdd864ea3ae3046c8a20382 /ctxopt.h
parent1eff407070f604abde21d329b75c61e9d597a609 (diff)
Update ctxopt
Diffstat (limited to 'ctxopt.h')
-rw-r--r--ctxopt.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/ctxopt.h b/ctxopt.h
index 0ca1758..34483f3 100644
--- a/ctxopt.h
+++ b/ctxopt.h
@@ -4,13 +4,13 @@ typedef enum
constraints,
actions,
incompatibilities,
- error_functions,
+ error_functions
} settings;
typedef enum
{
entering,
- exiting,
+ exiting
} direction;
typedef enum
@@ -20,19 +20,25 @@ typedef enum
CTXOPTMISARG,
CTXOPTDUPOPT,
CTXOPTUNKPAR,
- CTXOPTINCTXOPTT,
- CTXOPTINTERNAL,
- CTXOPTERRSIZE,
+ CTXOPTINCOPT,
+ CTXOPTERRSIZE
} errors;
typedef enum
{
continue_after,
- exit_after,
+ exit_after
} usage_behaviour;
-char * ctxoptopt;
-errors ctxopterrno;
+typedef struct state_s
+{
+ char * ctx_name;
+ char * ctx_par_name;
+ char * opt_name;
+ char * opt_params;
+ char * pre_opt_par_name;
+ char * cur_opt_par_name;
+} state_t;
void
ctxopt_init(void);