aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-15 21:45:58 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-15 21:45:58 +0200
commit4f1eec385831018980e4c7424e1a544c5313b52a (patch)
treedc9ffe7aba416c469113a03ff08629d2bfeb6312 /awk.h
parentb37675aa79213f2665abb2bbb4db90560642bdee (diff)
downloadegawk-4f1eec385831018980e4c7424e1a544c5313b52a.tar.gz
egawk-4f1eec385831018980e4c7424e1a544c5313b52a.tar.bz2
egawk-4f1eec385831018980e4c7424e1a544c5313b52a.zip
Finish reworking typed regexes. Tests pass!
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/awk.h b/awk.h
index cc487c3a..890e5861 100644
--- a/awk.h
+++ b/awk.h
@@ -384,7 +384,7 @@ typedef struct exp_node {
int idx;
wchar_t *wsp;
size_t wslen;
- Regexp *preg;
+ struct exp_node *typre;
} val;
} sub;
NODETYPE type;
@@ -510,6 +510,7 @@ typedef struct exp_node {
#define numbr sub.val.fltnum
#endif
#define tre_regs sub.val.preg
+#define typed_re sub.val.typre
/*
* If stfmt is set to STFMT_UNUSED, it means that the string representation