diff options
author | Adrian Thurston <thurston@complang.org> | 2013-02-04 22:28:28 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-02-04 22:28:28 -0500 |
commit | 63e620c91ae722386b97ab812cf4f4deeef91b71 (patch) | |
tree | e15cdc2dbc1c761bfd7ad28336445ae909ef7940 /colm/pdarun.h | |
parent | 92f7064afbba7b59604058732b743e42b6b9331f (diff) | |
download | colm-63e620c91ae722386b97ab812cf4f4deeef91b71.tar.gz |
keep tokend as an int, not pointer
Since we are no longer maintaining a contiguous token buffer during scanning we
cannot use a pointer for tokend. Turn it into an offset (toklen).
Diffstat (limited to 'colm/pdarun.h')
-rw-r--r-- | colm/pdarun.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/colm/pdarun.h b/colm/pdarun.h index 5d8b3cea..350c10fb 100644 --- a/colm/pdarun.h +++ b/colm/pdarun.h @@ -78,10 +78,13 @@ typedef struct _FsmRun /* FsmRun State. */ long region, preRegion; long cs, ncs, act; - char *tokstart, *tokend; + char *start; + char *tokstart; + long tokend; long toklen; char *p, *pe, *peof; int returnResult; + int skipToklen; char *mark[MARK_SLOTS]; long matchedToken; } FsmRun; |