From 44fab2a44d06a956c3121ceba2b39ca7b00dc428 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 29 May 2023 09:39:03 -0300 Subject: Code size stored in code itself Most patterns do not have code, as they are not directly used for a match; they are created only to compose larger patterns. So, we shouldn't waste space to store the size of their code, as a NULL pointer already indicates that the size is zero. --- lpprint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lpprint.h') diff --git a/lpprint.h b/lpprint.h index 42d7f98..e97f8c0 100644 --- a/lpprint.h +++ b/lpprint.h @@ -9,7 +9,7 @@ #if defined(LPEG_DEBUG) -void printpatt (Instruction *p, int n); +void printpatt (Instruction *p); void printtree (TTree *tree, int ident); void printktable (lua_State *L, int idx); void printcharset (const byte *st); -- cgit v1.2.3-55-g6feb