mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-17 18:01:13 +00:00
75d25d0d15
git-svn-id: https://svn.eduke32.com/eduke32@6156 1a8010ca-5511-0410-912e-c29ae57300e0
40 lines
784 B
C
40 lines
784 B
C
/*
|
|
** $Id: lpcode.h,v 1.8 2016/09/15 17:46:13 roberto Exp $
|
|
*/
|
|
|
|
#if !defined(lpcode_h)
|
|
#define lpcode_h
|
|
|
|
#include "elua.h"
|
|
|
|
#include "lptypes.h"
|
|
#include "lptree.h"
|
|
#include "lpvm.h"
|
|
|
|
int tocharset (TTree *tree, Charset *cs);
|
|
int checkaux (TTree *tree, int pred);
|
|
int fixedlen (TTree *tree);
|
|
int hascaptures (TTree *tree);
|
|
int lp_gc (lua_State *L);
|
|
Instruction *compile (lua_State *L, Pattern *p);
|
|
void realloccode (lua_State *L, Pattern *p, int nsize);
|
|
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
|