diff options
| author | 2023-06-25 10:34:41 +0200 | |
|---|---|---|
| committer | 2023-06-25 10:34:41 +0200 | |
| commit | b5ddbbd928c447485b8746c44dc9271de0111799 (patch) | |
| tree | 4a869bae20dcfdf674f15e95d59bf458ef7676a8 /lex.h | |
| parent | 92c721e086a95c3c053adb9e697c69881a131d5b (diff) | |
lex: use a circular buffer cache for pre-pre-processed chars
Diffstat (limited to 'lex.h')
| -rw-r--r-- | lex.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -91,9 +91,9 @@ struct lexer { const uchar *dat; uint ndat; uint idx, chridx; - short peekchr[2]; - uint peekcidx[2]; - short npeekchr; + short chrbuf[1<<10]; + uint chridxbuf[1<<10]; + ushort nchrbuf, chrbuf0; struct macrostack *macstk; struct token peektok; bool eof, err; |