From b741f94da993907fa4c17eba814b779cf47e1aa0 Mon Sep 17 00:00:00 2001
From: pgen
Date: Sat, 23 Nov 2019 14:24:36 +0100
Subject: Update ctxopt
---
ctxopt.h | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
(limited to 'ctxopt.h')
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);
--
cgit v1.2.3