summaryrefslogtreecommitdiff
path: root/usr.bin/awk/awk.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 06:31:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 06:31:52 +0000
commitd322712308e686f332a449b6a6f9dd2aa56d37d2 (patch)
treed16df39149cc29e812afc44f54ae1bd1ca5cc7ed /usr.bin/awk/awk.h
parent683cb73ba1617a5c10df69db92e8a020900327cb (diff)
Use long, not int when casting pointers and storing as integers.
Now compiles on alpha w/o warnings.
Diffstat (limited to 'usr.bin/awk/awk.h')
-rw-r--r--usr.bin/awk/awk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/awk/awk.h b/usr.bin/awk/awk.h
index 213e43302c8..23d1823c4ec 100644
--- a/usr.bin/awk/awk.h
+++ b/usr.bin/awk/awk.h
@@ -193,7 +193,7 @@ extern Node *nullnode;
#define NFIELD 4
-extern int pairstack[], paircnt;
+extern long pairstack[], paircnt;
#define notlegal(n) (n <= FIRSTTOKEN || n >= LASTTOKEN || proctab[n-FIRSTTOKEN] == nullproc)
#define isvalue(n) ((n)->ntype == NVALUE)
@@ -221,13 +221,13 @@ extern int pairstack[], paircnt;
#define NSTATES 32
typedef struct rrow {
- int ltype;
+ long ltype;
union {
int i;
Node *np;
char *up;
} lval; /* because Al stores a pointer in it! */
- int *lfollow;
+ long *lfollow;
} rrow;
typedef struct fa {
@@ -235,7 +235,7 @@ typedef struct fa {
int anchor;
int use;
uschar gototab[NSTATES][NCHARS];
- int *posns[NSTATES];
+ long *posns[NSTATES];
uschar out[NSTATES];
int initstat;
int curstat;