aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-25 10:34:41 +0200
committerlemon <lsof@mailbox.org>2023-06-25 10:34:41 +0200
commitb5ddbbd928c447485b8746c44dc9271de0111799 (patch)
tree4a869bae20dcfdf674f15e95d59bf458ef7676a8 /lex.h
parent92c721e086a95c3c053adb9e697c69881a131d5b (diff)
lex: use a circular buffer cache for pre-pre-processed chars
Diffstat (limited to 'lex.h')
-rw-r--r--lex.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lex.h b/lex.h
index a8e972f..0c6d151 100644
--- a/lex.h
+++ b/lex.h
@@ -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;