From 7668d9076da6e2ae9e220eafb5c6ee1e933c088d Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Sun, 15 Aug 2021 15:17:28 +0300 Subject: change prefix of source files from 'lp' to 'lpl' To eliminate conflicts with the original LPeg: > $ lua -e "require 'lpeg'; require 'lpeglabel'; for _ in (require'lxsh').lexers.lua.gmatch('1') do end" lua: lpvm.c:347: match: Assertion `stack > getstackbase(L, ptop) && (stack - 1)->s != NULL' failed. Aborted --- lpcode.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 lpcode.h (limited to 'lpcode.h') diff --git a/lpcode.h b/lpcode.h deleted file mode 100644 index bdd3ec1..0000000 --- a/lpcode.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -** $Id: lpcode.h $ -*/ - -#if !defined(lpcode_h) -#define lpcode_h - -#include "lua.h" - -#include "lptypes.h" -#include "lptree.h" -#include "lpvm.h" - -LUAI_FUNC int tocharset (TTree *tree, Charset *cs); -LUAI_FUNC int checkaux (TTree *tree, int pred); -LUAI_FUNC int fixedlen (TTree *tree); -LUAI_FUNC int hascaptures (TTree *tree); -LUAI_FUNC int lp_gc (lua_State *L); -LUAI_FUNC Instruction *compile (lua_State *L, Pattern *p); -LUAI_FUNC void realloccode (lua_State *L, Pattern *p, int nsize); -LUAI_FUNC int sizei (const Instruction *i); - - -#define PEnullable 0 -#define PEnofail 1 - -/* -** nofail(t) implies that 't' cannot fail with any input -*/ -#define nofail(t) checkaux(t, PEnofail) - -/* -** (not nullable(t)) implies 't' cannot match without consuming -** something -*/ -#define nullable(t) checkaux(t, PEnullable) - - - -#endif -- cgit v1.2.3-55-g6feb