aboutsummaryrefslogtreecommitdiff
path: root/lpcode.h
diff options
context:
space:
mode:
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