aboutsummaryrefslogtreecommitdiff
path: root/lpcode.h
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2019-01-10 10:06:33 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2019-01-10 10:06:33 -0300
commit4fb816d55f47c48c34cc4478e584b1567a75863b (patch)
tree54ec6965c9d3983b193cf000a521a06cb3d73b8a /lpcode.h
parent9be59fb8f4b176a16643e707c74051b243202296 (diff)
downloadlpeglabel-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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lpcode.h b/lpcode.h
index 2a5861e..896d3c7 100644
--- a/lpcode.h
+++ b/lpcode.h
@@ -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
14int tocharset (TTree *tree, Charset *cs); 14int tocharset (TTree *tree, Charset *cs);
15int checkaux (TTree *tree, int pred); 15int checkaux (TTree *tree, int pred);
16int fixedlen (TTree *tree); 16int fixedlenx (TTree *tree, int count, int len);
17int hascaptures (TTree *tree); 17int hascaptures (TTree *tree);
18int lp_gc (lua_State *L); 18int lp_gc (lua_State *L);
19Instruction *compile (lua_State *L, Pattern *p); 19Instruction *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