diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-13 14:24:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-13 14:24:20 -0300 |
commit | 04f657c7f892072d7cdc021e9e2635acc086f898 (patch) | |
tree | f5cd7c82ae0152a1b252511f85b58296590eca04 /lua.c | |
parent | 2873d4efff18e972a94a6d20c231b0ac062bc4ca (diff) | |
download | lua-04f657c7f892072d7cdc021e9e2635acc086f898.tar.gz lua-04f657c7f892072d7cdc021e9e2635acc086f898.tar.bz2 lua-04f657c7f892072d7cdc021e9e2635acc086f898.zip |
new protocol to open standard libraries
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.140 2005/03/30 19:50:29 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.141 2005/04/11 18:01:35 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -343,7 +343,7 @@ static int pmain (lua_State *L) { | |||
343 | int interactive = 1; | 343 | int interactive = 1; |
344 | if (s->argv[0] && s->argv[0][0]) progname = s->argv[0]; | 344 | if (s->argv[0] && s->argv[0][0]) progname = s->argv[0]; |
345 | globalL = L; | 345 | globalL = L; |
346 | luaopen_stdlibs(L); /* open libraries */ | 346 | luaL_openlibs(L); /* open libraries */ |
347 | status = handle_luainit(L); | 347 | status = handle_luainit(L); |
348 | if (status == 0) { | 348 | if (status == 0) { |
349 | status = handle_argv(L, s->argc, s->argv, &interactive); | 349 | status = handle_argv(L, s->argc, s->argv, &interactive); |