diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-16 14:22:43 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-16 14:22:43 -0300 |
commit | 89a3ec08f37d127fc3c7756cb7cf71586959f8c4 (patch) | |
tree | 583e5059db359960da0f6c954916133a46024cfe /linit.c | |
parent | e3ea307434c876f561fa22d22d64ec1030f10415 (diff) | |
download | lua-89a3ec08f37d127fc3c7756cb7cf71586959f8c4.tar.gz lua-89a3ec08f37d127fc3c7756cb7cf71586959f8c4.tar.bz2 lua-89a3ec08f37d127fc3c7756cb7cf71586959f8c4.zip |
function lua_userinit is used only in single-state mode (by lua.c)
Diffstat (limited to 'linit.c')
-rw-r--r-- | linit.c | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -1,22 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: linit.c,v 1.3 1999/12/06 11:43:09 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.4 2000/06/12 13:52:05 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 | |||
9 | #include "lua.h" | 7 | #include "lua.h" |
10 | 8 | ||
11 | #include "lualib.h" | 9 | #include "lualib.h" |
12 | 10 | ||
13 | 11 | ||
14 | void lua_userinit (lua_State *L) { | 12 | void lua_userinit (void) { |
15 | lua_beginblock(L); | 13 | lua_beginblock(); |
16 | lua_iolibopen(L); | 14 | lua_iolibopen(); |
17 | lua_strlibopen(L); | 15 | lua_strlibopen(); |
18 | lua_mathlibopen(L); | 16 | lua_mathlibopen(); |
19 | lua_dblibopen(L); | 17 | lua_dblibopen(); |
20 | lua_endblock(L); | 18 | lua_endblock(); |
21 | } | 19 | } |
22 | 20 | ||