aboutsummaryrefslogtreecommitdiff
path: root/lpprint.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-29 09:39:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-29 09:39:03 -0300
commit44fab2a44d06a956c3121ceba2b39ca7b00dc428 (patch)
tree9f492ba2ebaa4fb3cf6554fcb63f3fe026d43a5d /lpprint.h
parent460a35cbcb33fbc56f5a658b96a793b9bb8963e9 (diff)
downloadlpeg-44fab2a44d06a956c3121ceba2b39ca7b00dc428.tar.gz
lpeg-44fab2a44d06a956c3121ceba2b39ca7b00dc428.tar.bz2
lpeg-44fab2a44d06a956c3121ceba2b39ca7b00dc428.zip
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.
Diffstat (limited to 'lpprint.h')
-rw-r--r--lpprint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lpprint.h b/lpprint.h
index 42d7f98..e97f8c0 100644
--- a/lpprint.h
+++ b/lpprint.h
@@ -9,7 +9,7 @@
9 9
10#if defined(LPEG_DEBUG) 10#if defined(LPEG_DEBUG)
11 11
12void printpatt (Instruction *p, int n); 12void printpatt (Instruction *p);
13void printtree (TTree *tree, int ident); 13void printtree (TTree *tree, int ident);
14void printktable (lua_State *L, int idx); 14void printktable (lua_State *L, int idx);
15void printcharset (const byte *st); 15void printcharset (const byte *st);