diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-06 06:31:52 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-06 06:31:52 +0000 |
commit | d322712308e686f332a449b6a6f9dd2aa56d37d2 (patch) | |
tree | d16df39149cc29e812afc44f54ae1bd1ca5cc7ed /usr.bin/awk/awk.h | |
parent | 683cb73ba1617a5c10df69db92e8a020900327cb (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.h | 8 |
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; |