summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index e4dfee4d..87fad93e 100644
--- a/regex.c
+++ b/regex.c
@@ -56,8 +56,10 @@ typedef struct nfa {
nfa_state_t *accept;
} nfa_t;
+typedef enum { REGEX_NFA, REGEX_DV } regex_kind_t;
+
typedef struct regex {
- enum { REGEX_NFA, REGEX_DV } kind;
+ regex_kind_t kind;
union {
struct nfa nfa;
val dv;