1993-07-28 17:18:00 +04:00
|
|
|
/*
|
1999-11-22 16:12:07 +03:00
|
|
|
** $Id: lualib.h,v 1.7 1999/08/16 20:52:00 roberto Exp roberto $
|
1997-09-16 23:25:59 +04:00
|
|
|
** Lua standard libraries
|
|
|
|
** See Copyright Notice in lua.h
|
1993-07-28 17:18:00 +04:00
|
|
|
*/
|
|
|
|
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1993-07-28 17:18:00 +04:00
|
|
|
#ifndef lualib_h
|
|
|
|
#define lualib_h
|
|
|
|
|
1996-05-01 01:13:55 +04:00
|
|
|
#include "lua.h"
|
|
|
|
|
1999-11-22 16:12:07 +03:00
|
|
|
void lua_iolibopen (lua_State *L);
|
|
|
|
void lua_strlibopen (lua_State *L);
|
|
|
|
void lua_mathlibopen (lua_State *L);
|
|
|
|
void lua_dblibopen (lua_State *L);
|
1997-09-16 23:25:59 +04:00
|
|
|
|
|
|
|
|
1999-11-22 16:12:07 +03:00
|
|
|
void lua_userinit (lua_State *L);
|
1997-09-16 23:25:59 +04:00
|
|
|
|
|
|
|
|
1999-11-22 16:12:07 +03:00
|
|
|
/*
|
|
|
|
** ===============================================================
|
|
|
|
** Macros for single-state use
|
|
|
|
** ===============================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LUA_REENTRANT
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1999-11-22 16:12:07 +03:00
|
|
|
#define lua_iolibopen() (lua_iolibopen)(lua_state)
|
|
|
|
#define lua_strlibopen() (lua_strlibopen)(lua_state)
|
|
|
|
#define lua_mathlibopen() (lua_mathlibopen)(lua_state)
|
|
|
|
#define lua_dblibopen() (lua_dblibopen)(lua_state)
|
|
|
|
#define lua_userinit() (lua_userinit)(lua_state)
|
|
|
|
|
|
|
|
#endif
|
1993-07-28 17:18:00 +04:00
|
|
|
|
1995-11-10 20:54:31 +03:00
|
|
|
|
1996-05-01 01:13:55 +04:00
|
|
|
|
1998-06-19 20:14:09 +04:00
|
|
|
/* Auxiliary functions (private) */
|
1996-05-01 01:13:55 +04:00
|
|
|
|
1999-11-22 16:12:07 +03:00
|
|
|
const char *luaI_classend (lua_State *L, const char *p);
|
1999-08-17 00:52:00 +04:00
|
|
|
int luaI_singlematch (int c, const char *p, const char *ep);
|
1996-08-06 00:55:24 +04:00
|
|
|
|
1993-07-28 17:18:00 +04:00
|
|
|
#endif
|