diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 11:12:07 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 11:12:07 -0200 |
| commit | 29ede6aa13144ff7b69c57a87be1ee93f57ae896 (patch) | |
| tree | adcfb5dcff7db55481cd675349e23dec0e63c939 /linit.c | |
| parent | 951897c09319ae5474a4b86bb7d615136577caa0 (diff) | |
| download | lua-29ede6aa13144ff7b69c57a87be1ee93f57ae896.tar.gz lua-29ede6aa13144ff7b69c57a87be1ee93f57ae896.tar.bz2 lua-29ede6aa13144ff7b69c57a87be1ee93f57ae896.zip | |
first implementation of multiple states (reentrant code).
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 | ||
