aboutsummaryrefslogtreecommitdiff
path: root/lpprint.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-07 15:41:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-07 15:41:01 -0300
commitcf1705c1d96b549ef5887a2bc3038dbc31912e50 (patch)
tree98d37b61c4f095b089fa40e55032e0479932be6c /lpprint.h
parente31e13f59ef1a4df1698b15ff1fe0198553cc3c2 (diff)
downloadlpeg-cf1705c1d96b549ef5887a2bc3038dbc31912e50.tar.gz
lpeg-cf1705c1d96b549ef5887a2bc3038dbc31912e50.tar.bz2
lpeg-cf1705c1d96b549ef5887a2bc3038dbc31912e50.zip
Captures point to string positions using indices
That uses 4 bytes (uint) instead of 8 (char*); the size of the structure 'Capture' reduces from 16 to 8 bytes in 64-bit machines.
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 e97f8c0..aafdafc 100644
--- a/lpprint.h
+++ b/lpprint.h
@@ -13,7 +13,7 @@ void 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);
16void printcaplist (Capture *cap, Capture *limit); 16void printcaplist (Capture *cap);
17void printinst (const Instruction *op, const Instruction *p); 17void printinst (const Instruction *op, const Instruction *p);
18 18
19#else 19#else