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. --- lptree.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lptree.h') diff --git a/lptree.h b/lptree.h index 7dab362..c788741 100644 --- a/lptree.h +++ b/lptree.h @@ -72,7 +72,6 @@ typedef struct TTree { */ typedef struct Pattern { union Instruction *code; - int codesize; TTree tree[1]; } Pattern; -- cgit v1.2.3-55-g6feb