summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-04-13 14:24:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-04-13 14:24:20 -0300
commit04f657c7f892072d7cdc021e9e2635acc086f898 (patch)
treef5cd7c82ae0152a1b252511f85b58296590eca04 /lua.c
parent2873d4efff18e972a94a6d20c231b0ac062bc4ca (diff)
downloadlua-github-04f657c7f892072d7cdc021e9e2635acc086f898.tar.gz
new protocol to open standard libraries
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 7f3a4943..9e47308b 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
/*
-** $Id: lua.c,v 1.140 2005/03/30 19:50:29 roberto Exp roberto $
+** $Id: lua.c,v 1.141 2005/04/11 18:01:35 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -343,7 +343,7 @@ static int pmain (lua_State *L) {
int interactive = 1;
if (s->argv[0] && s->argv[0][0]) progname = s->argv[0];
globalL = L;
- luaopen_stdlibs(L); /* open libraries */
+ luaL_openlibs(L); /* open libraries */
status = handle_luainit(L);
if (status == 0) {
status = handle_argv(L, s->argc, s->argv, &interactive);