aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-22 20:30:09 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-22 20:30:09 +0200
commit52715ba9f8510f30368462fee1b1d24bf282b0aa (patch)
tree2b7569bb73d64433f84ccf2672c3973809804b51 /awk.h
parentf7ae9cfb843379b95d8cb44dbb8de7bbf11862de (diff)
parent033faa34a743231a88a6c555503397045726666f (diff)
downloadegawk-52715ba9f8510f30368462fee1b1d24bf282b0aa.tar.gz
egawk-52715ba9f8510f30368462fee1b1d24bf282b0aa.tar.bz2
egawk-52715ba9f8510f30368462fee1b1d24bf282b0aa.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/awk.h b/awk.h
index dcf97bb0..55746927 100644
--- a/awk.h
+++ b/awk.h
@@ -384,6 +384,7 @@ typedef struct exp_node {
int idx;
wchar_t *wsp;
size_t wslen;
+ struct exp_node *typre;
} val;
} sub;
NODETYPE type;
@@ -459,6 +460,7 @@ typedef struct exp_node {
* See cint_array.c */
# define XARRAY 0x10000
# define NUMCONSTSTR 0x20000 /* have string value for numeric constant */
+# define REGEX 0x40000 /* this is a typed regex */
} NODE;
#define vname sub.nodep.name
@@ -507,6 +509,7 @@ typedef struct exp_node {
#else
#define numbr sub.val.fltnum
#endif
+#define typed_re sub.val.typre
/*
* If stfmt is set to STFMT_UNUSED, it means that the string representation
@@ -1872,9 +1875,6 @@ force_number(NODE *n)
* It is safe to assume that the return value will be the same NODE,
* since force_number on a USER_INPUT should always return the same NODE,
* and force_string on an INTIND should as well.
- *
- * There is no way to handle a Node_typedregex correctly, so we ignore
- * that case.
*/
static inline NODE *