From b5ddbbd928c447485b8746c44dc9271de0111799 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 25 Jun 2023 10:34:41 +0200 Subject: lex: use a circular buffer cache for pre-pre-processed chars --- lex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lex.h') 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; -- cgit v1.2.3