diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2020-09-21 19:03:07 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-09-21 19:03:07 +0000 |
commit | ae692c42cb46a5e72772070070840b15dd5d6bd8 (patch) | |
tree | daa693c81106ab1e9d653ae292136f42892c77d8 /contrib | |
parent | 52664466c7be2c98112ceb127d2a6e3f420010a7 (diff) | |
download | src-test2-ae692c42cb46a5e72772070070840b15dd5d6bd8.tar.gz src-test2-ae692c42cb46a5e72772070070840b15dd5d6bd8.zip |
Notes
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/one-true-awk/awk.h | 4 | ||||
-rw-r--r-- | contrib/one-true-awk/b.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/one-true-awk/awk.h b/contrib/one-true-awk/awk.h index b16c2f36f828..31d070aecddc 100644 --- a/contrib/one-true-awk/awk.h +++ b/contrib/one-true-awk/awk.h @@ -218,6 +218,8 @@ extern int pairstack[], paircnt; #define NCHARS (256+3) /* 256 handles 8-bit chars; 128 does 7-bit */ /* watch out in match(), etc. */ #define NSTATES 32 +#define HAT (NCHARS+2) /* matches ^ in regular expr */ + /* NCHARS is 2**n */ typedef struct rrow { long ltype; /* long avoids pointer warnings on 64-bit */ @@ -230,7 +232,7 @@ typedef struct rrow { } rrow; typedef struct fa { - uschar gototab[NSTATES][NCHARS]; + uschar gototab[NSTATES][HAT + 1]; uschar out[NSTATES]; uschar *restr; int *posns[NSTATES]; diff --git a/contrib/one-true-awk/b.c b/contrib/one-true-awk/b.c index 4de746fa087f..0cdcf30a972e 100644 --- a/contrib/one-true-awk/b.c +++ b/contrib/one-true-awk/b.c @@ -37,8 +37,6 @@ __FBSDID("$FreeBSD$"); #include "awk.h" #include "ytab.h" -#define HAT (NCHARS+2) /* matches ^ in regular expr */ - /* NCHARS is 2**n */ #define MAXLIN 22 #define type(v) (v)->nobj /* badly overloaded here */ |