diff options
| -rw-r--r-- | lualib.h | 27 |
1 files changed, 18 insertions, 9 deletions
| @@ -1,18 +1,28 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** Libraries to be used in LUA programs | 2 | ** $Id: $ |
| 3 | ** Grupo de Tecnologia em Computacao Grafica | 3 | ** Lua standard libraries |
| 4 | ** TeCGraf - PUC-Rio | 4 | ** See Copyright Notice in lua.h |
| 5 | ** $Id: lualib.h,v 1.12 1997/03/18 15:30:50 roberto Exp roberto $ | ||
| 6 | */ | 5 | */ |
| 7 | 6 | ||
| 7 | |||
| 8 | #ifndef lualib_h | 8 | #ifndef lualib_h |
| 9 | #define lualib_h | 9 | #define lualib_h |
| 10 | 10 | ||
| 11 | #include "lua.h" | 11 | #include "lua.h" |
| 12 | 12 | ||
| 13 | void iolib_open (void); | 13 | |
| 14 | void strlib_open (void); | 14 | void lua_iolibopen (void); |
| 15 | void mathlib_open (void); | 15 | void lua_strlibopen (void); |
| 16 | void lua_mathlibopen (void); | ||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | /* To keep compatibility with old versions */ | ||
| 22 | |||
| 23 | #define iolib_open lua_iolibopen | ||
| 24 | #define strlib_open lua_strlibopen | ||
| 25 | #define mathlib_open lua_mathlibopen | ||
| 16 | 26 | ||
| 17 | 27 | ||
| 18 | 28 | ||
| @@ -22,8 +32,7 @@ char *luaI_addchar (int c); | |||
| 22 | void luaI_emptybuff (void); | 32 | void luaI_emptybuff (void); |
| 23 | void luaI_addquoted (char *s); | 33 | void luaI_addquoted (char *s); |
| 24 | 34 | ||
| 25 | char *luaL_item_end (char *p); | 35 | int luaI_singlematch (int c, char *p, char **ep); |
| 26 | int luaL_singlematch (int c, char *p); | ||
| 27 | 36 | ||
| 28 | #endif | 37 | #endif |
| 29 | 38 | ||
