10#if LUA_VERSION_NUM > 501
12# define lua_objlen lua_rawlen
14 int luaL_typerror (lua_State *L,
int narg,
const char *tname);
19# define REX_API LUALIB_API
23#define GSUB_UNLIMITED -1
24#define GSUB_CONDITIONAL -2
39 const unsigned char * tables;
42 const unsigned char * translate;
83void buffer_clear (
TBuffer *buf);
85void buffer_addlstring (
TBuffer *buf,
const void *src,
size_t sz);
86void buffer_addvalue (
TBuffer *buf,
int stackpos);
87void buffer_pushresult (
TBuffer *buf);
89void bufferZ_putrepstring (
TBuffer *buf,
int reppos,
int nsub);
90int bufferZ_next (
TBuffer *buf,
size_t *iter,
size_t *len,
const char **str);
91void bufferZ_addlstring (
TBuffer *buf,
const void *src,
size_t len);
92void bufferZ_addnum (
TBuffer *buf,
size_t num);
94int get_int_field (lua_State *L,
const char* field);
95void set_int_field (lua_State *L,
const char* field,
int val);
96int get_flags (lua_State *L,
const flag_pair **arr);
97const char *get_flag_key (
const flag_pair *fp,
int val);
98void *Lmalloc (lua_State *L,
size_t size);
99void *Lrealloc (lua_State *L,
void *p,
size_t osize,
size_t nsize);
100void Lfree (lua_State *L,
void *p,
size_t size);
102#ifndef REX_NOEMBEDDEDTEST
103int newmembuffer (lua_State *L);