diff options
author | Mike Pall <mike> | 2013-02-28 02:31:30 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2013-02-28 02:31:30 +0100 |
commit | 3c0157f4262813efd0b0d8284810ff5a9e71d96a (patch) | |
tree | aacdd625d6c8cb86bc378be4e7b01e63cb522c33 /src/lj_lex.h | |
parent | 87c51e7f57ec9277a02e7e21c8a28b4cb9d08914 (diff) | |
download | luajit-3c0157f4262813efd0b0d8284810ff5a9e71d96a.tar.gz luajit-3c0157f4262813efd0b0d8284810ff5a9e71d96a.tar.bz2 luajit-3c0157f4262813efd0b0d8284810ff5a9e71d96a.zip |
String buffer refactoring, part 3.
Switch to pointers for start/end of buffer in lexer.
Diffstat (limited to 'src/lj_lex.h')
-rw-r--r-- | src/lj_lex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_lex.h b/src/lj_lex.h index 71a7c1de..3e76e72a 100644 --- a/src/lj_lex.h +++ b/src/lj_lex.h | |||
@@ -54,11 +54,11 @@ typedef struct LexState { | |||
54 | struct lua_State *L; /* Lua state. */ | 54 | struct lua_State *L; /* Lua state. */ |
55 | TValue tokval; /* Current token value. */ | 55 | TValue tokval; /* Current token value. */ |
56 | TValue lookaheadval; /* Lookahead token value. */ | 56 | TValue lookaheadval; /* Lookahead token value. */ |
57 | const char *p; /* Current position in input buffer. */ | ||
58 | const char *pe; /* End of input buffer. */ | ||
57 | LexChar c; /* Current character. */ | 59 | LexChar c; /* Current character. */ |
58 | LexToken tok; /* Current token. */ | 60 | LexToken tok; /* Current token. */ |
59 | LexToken lookahead; /* Lookahead token. */ | 61 | LexToken lookahead; /* Lookahead token. */ |
60 | MSize n; /* Bytes left in input buffer. */ | ||
61 | const char *p; /* Current position in input buffer. */ | ||
62 | SBuf sb; /* String buffer for tokens. */ | 62 | SBuf sb; /* String buffer for tokens. */ |
63 | lua_Reader rfunc; /* Reader callback. */ | 63 | lua_Reader rfunc; /* Reader callback. */ |
64 | void *rdata; /* Reader callback data. */ | 64 | void *rdata; /* Reader callback data. */ |