From 4fb816d55f47c48c34cc4478e584b1567a75863b Mon Sep 17 00:00:00 2001 From: Sergio Queiroz Date: Thu, 10 Jan 2019 10:06:33 -0300 Subject: Adapting lpeglabel-1.5 to the codebase of lpeg-1.0.0 --- lpcode.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lpcode.h') diff --git a/lpcode.h b/lpcode.h index 2a5861e..896d3c7 100644 --- a/lpcode.h +++ b/lpcode.h @@ -1,5 +1,5 @@ /* -** $Id: lpcode.h,v 1.8 2016/09/15 17:46:13 roberto Exp $ +** $Id: lpcode.h,v 1.7 2015/06/12 18:24:45 roberto Exp $ */ #if !defined(lpcode_h) @@ -13,7 +13,7 @@ int tocharset (TTree *tree, Charset *cs); int checkaux (TTree *tree, int pred); -int fixedlen (TTree *tree); +int fixedlenx (TTree *tree, int count, int len); int hascaptures (TTree *tree); int lp_gc (lua_State *L); Instruction *compile (lua_State *L, Pattern *p); @@ -35,6 +35,8 @@ int sizei (const Instruction *i); */ #define nullable(t) checkaux(t, PEnullable) +#define fixedlen(t) fixedlenx(t, 0, 0) + #endif -- cgit v1.2.3-55-g6feb