Page MenuHomeFreeBSD

D26509.1795648607.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D26509.1795648607.diff

Index: head/contrib/one-true-awk/awk.h
===================================================================
--- head/contrib/one-true-awk/awk.h
+++ head/contrib/one-true-awk/awk.h
@@ -218,6 +218,8 @@
#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 @@
} rrow;
typedef struct fa {
- uschar gototab[NSTATES][NCHARS];
+ uschar gototab[NSTATES][HAT + 1];
uschar out[NSTATES];
uschar *restr;
int *posns[NSTATES];
Index: head/contrib/one-true-awk/b.c
===================================================================
--- head/contrib/one-true-awk/b.c
+++ head/contrib/one-true-awk/b.c
@@ -37,8 +37,6 @@
#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 */

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 25, 11:16 PM (19 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42001341
Default Alt Text
D26509.1795648607.diff (1 KB)

Event Timeline