diff options
Diffstat (limited to 'lualib.h')
-rw-r--r-- | lualib.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -2,18 +2,27 @@ | |||
2 | ** Libraries to be used in LUA programs | 2 | ** Libraries to be used in LUA programs |
3 | ** Grupo de Tecnologia em Computacao Grafica | 3 | ** Grupo de Tecnologia em Computacao Grafica |
4 | ** TeCGraf - PUC-Rio | 4 | ** TeCGraf - PUC-Rio |
5 | ** $Id: lualib.h,v 1.6 1996/02/09 19:00:23 roberto Exp roberto $ | 5 | ** $Id: lualib.h,v 1.7 1996/03/14 15:53:09 roberto Exp roberto $ |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #ifndef lualib_h | 8 | #ifndef lualib_h |
9 | #define lualib_h | 9 | #define lualib_h |
10 | 10 | ||
11 | #include "lua.h" | ||
12 | |||
11 | void iolib_open (void); | 13 | void iolib_open (void); |
12 | void strlib_open (void); | 14 | void strlib_open (void); |
13 | void mathlib_open (void); | 15 | void mathlib_open (void); |
14 | 16 | ||
15 | 17 | ||
16 | /* auxiliar functions (private) */ | 18 | /* auxiliar functions (private) */ |
19 | |||
20 | struct lua_reg { | ||
21 | char *name; | ||
22 | lua_CFunction func; | ||
23 | }; | ||
24 | |||
25 | void luaI_openlib (struct lua_reg *l, int n); | ||
17 | void lua_arg_error(char *funcname); | 26 | void lua_arg_error(char *funcname); |
18 | char *lua_check_string (int numArg, char *funcname); | 27 | char *lua_check_string (int numArg, char *funcname); |
19 | double lua_check_number (int numArg, char *funcname); | 28 | double lua_check_number (int numArg, char *funcname); |