diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-06-07 15:41:01 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-06-07 15:41:01 -0300 |
commit | cf1705c1d96b549ef5887a2bc3038dbc31912e50 (patch) | |
tree | 98d37b61c4f095b089fa40e55032e0479932be6c /lpprint.h | |
parent | e31e13f59ef1a4df1698b15ff1fe0198553cc3c2 (diff) | |
download | lpeg-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ void printpatt (Instruction *p); | |||
13 | void printtree (TTree *tree, int ident); | 13 | void printtree (TTree *tree, int ident); |
14 | void printktable (lua_State *L, int idx); | 14 | void printktable (lua_State *L, int idx); |
15 | void printcharset (const byte *st); | 15 | void printcharset (const byte *st); |
16 | void printcaplist (Capture *cap, Capture *limit); | 16 | void printcaplist (Capture *cap); |
17 | void printinst (const Instruction *op, const Instruction *p); | 17 | void printinst (const Instruction *op, const Instruction *p); |
18 | 18 | ||
19 | #else | 19 | #else |