diff options
Diffstat (limited to 'linit.c')
-rw-r--r-- | linit.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,17 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: linit.c,v 1.1 1999/01/08 16:47:44 roberto Exp $ | 2 | ** $Id: linit.c,v 1.1 1999/01/08 16:49:32 roberto Exp roberto $ |
3 | ** Initialization of libraries for lua.c | 3 | ** Initialization of libraries for lua.c |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define LUA_REENTRANT | ||
8 | |||
7 | #include "lua.h" | 9 | #include "lua.h" |
8 | #include "lualib.h" | 10 | #include "lualib.h" |
9 | 11 | ||
10 | 12 | ||
11 | void lua_userinit (void) { | 13 | void lua_userinit (lua_State *L) { |
12 | lua_iolibopen(); | 14 | lua_iolibopen(L); |
13 | lua_strlibopen(); | 15 | lua_strlibopen(L); |
14 | lua_mathlibopen(); | 16 | lua_mathlibopen(L); |
15 | lua_dblibopen(); | 17 | lua_dblibopen(L); |
16 | } | 18 | } |
17 | 19 | ||