aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-01-19 21:08:19 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-01-19 21:08:19 +0200
commit5a619e1986724cf8e27b637509925a8da36837e8 (patch)
treeffe527c6bc2bd170ca225d459b74d70cb74dfa70 /awk.h
parentbaadccc7297fa9a0cd1bcc276385872fa0ca8b6e (diff)
downloadegawk-5a619e1986724cf8e27b637509925a8da36837e8.tar.gz
egawk-5a619e1986724cf8e27b637509925a8da36837e8.tar.bz2
egawk-5a619e1986724cf8e27b637509925a8da36837e8.zip
Speed up programs that toggle IGNORECASE a lot.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/awk.h b/awk.h
index 278f54c5..d5c88fd9 100644
--- a/awk.h
+++ b/awk.h
@@ -343,7 +343,7 @@ typedef struct exp_node {
} l;
union {
struct exp_node *rptr;
- Regexp *preg;
+ Regexp *preg[2];
struct exp_node **av;
BUCKET **bv;
void *aq;
@@ -361,9 +361,8 @@ typedef struct exp_node {
struct exp_node *rn;
unsigned long cnt;
unsigned long reflags;
-# define CASE 1
-# define CONSTANT 2
-# define FS_DFLT 4
+# define CONSTANT 1
+# define FS_DFLT 2
} nodep;
struct {
@@ -1083,7 +1082,7 @@ extern long NF;
extern long NR;
extern long FNR;
extern int BINMODE;
-extern int IGNORECASE;
+extern bool IGNORECASE;
extern bool RS_is_null;
extern char *OFS;
extern int OFSlen;