diff options
author | Sergio Queiroz <sqmedeiros@gmail.com> | 2019-01-10 10:06:33 -0300 |
---|---|---|
committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2019-01-10 10:06:33 -0300 |
commit | 4fb816d55f47c48c34cc4478e584b1567a75863b (patch) | |
tree | 54ec6965c9d3983b193cf000a521a06cb3d73b8a /lpcode.h | |
parent | 9be59fb8f4b176a16643e707c74051b243202296 (diff) | |
download | lpeglabel-lpeg-1.0.0.tar.gz lpeglabel-lpeg-1.0.0.tar.bz2 lpeglabel-lpeg-1.0.0.zip |
Adapting lpeglabel-1.5 to the codebase of lpeg-1.0.0lpeg-1.0.0
Diffstat (limited to 'lpcode.h')
-rw-r--r-- | lpcode.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lpcode.h,v 1.8 2016/09/15 17:46:13 roberto Exp $ | 2 | ** $Id: lpcode.h,v 1.7 2015/06/12 18:24:45 roberto Exp $ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #if !defined(lpcode_h) | 5 | #if !defined(lpcode_h) |
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | int tocharset (TTree *tree, Charset *cs); | 14 | int tocharset (TTree *tree, Charset *cs); |
15 | int checkaux (TTree *tree, int pred); | 15 | int checkaux (TTree *tree, int pred); |
16 | int fixedlen (TTree *tree); | 16 | int fixedlenx (TTree *tree, int count, int len); |
17 | int hascaptures (TTree *tree); | 17 | int hascaptures (TTree *tree); |
18 | int lp_gc (lua_State *L); | 18 | int lp_gc (lua_State *L); |
19 | Instruction *compile (lua_State *L, Pattern *p); | 19 | Instruction *compile (lua_State *L, Pattern *p); |
@@ -35,6 +35,8 @@ int sizei (const Instruction *i); | |||
35 | */ | 35 | */ |
36 | #define nullable(t) checkaux(t, PEnullable) | 36 | #define nullable(t) checkaux(t, PEnullable) |
37 | 37 | ||
38 | #define fixedlen(t) fixedlenx(t, 0, 0) | ||
39 | |||
38 | 40 | ||
39 | 41 | ||
40 | #endif | 42 | #endif |