aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-03 21:23:22 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-03 21:23:22 +0300
commit9907a598dca8f129422c42f8c4fa3b4e2c988221 (patch)
tree3a2be1d8cc0c5747129c6d9e4f75d1ee250fe988 /re.c
parent58cd470fe6b37ff2b62f5bc5b8cedf19be04fc63 (diff)
downloadegawk-9907a598dca8f129422c42f8c4fa3b4e2c988221.tar.gz
egawk-9907a598dca8f129422c42f8c4fa3b4e2c988221.tar.bz2
egawk-9907a598dca8f129422c42f8c4fa3b4e2c988221.zip
Remove typed regexps until they can be done correctly.
Diffstat (limited to 're.c')
-rw-r--r--re.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/re.c b/re.c
index d92560d0..3b01823b 100644
--- a/re.c
+++ b/re.c
@@ -351,14 +351,10 @@ re_update(NODE *t)
/* regex was compiled with settings matching IGNORECASE */
if ((t->re_flags & CONSTANT) != 0) {
/* it's a constant, so just return it as is */
- assert(t->type == Node_regex || t->type == Node_typedregex);
+ assert(t->type == Node_regex);
return t->re_reg;
}
t1 = t->re_exp;
- if (t1->type == Node_typedregex) {
- assert((t1->re_flags & CONSTANT) != 0);
- return t1->re_reg;
- }
if (t->re_text != NULL) {
/* if contents haven't changed, just return it */
if (cmp_nodes(t->re_text, t1) == 0)