aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/lua.c b/lua.c
index 481fd948..03c8a496 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.98 2002/08/06 15:32:22 roberto Exp roberto $ 2** $Id: lua.c,v 1.99 2002/08/06 18:01:50 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*/
@@ -337,14 +337,15 @@ static int handle_argv (char *argv[], int *interactive) {
337 337
338 338
339static int openstdlibs (lua_State *l) { 339static int openstdlibs (lua_State *l) {
340 return lua_baselibopen(l) + 340 int res = 0;
341 lua_tablibopen(l) + 341 res += lua_baselibopen(l);
342 lua_iolibopen(l) + 342 res += lua_tablibopen(l);
343 lua_strlibopen(l) + 343 res += lua_iolibopen(l);
344 lua_mathlibopen(l) + 344 res += lua_strlibopen(l);
345 lua_dblibopen(l) + 345 res += lua_mathlibopen(l);
346 /* add your libraries here */ 346 res += lua_dblibopen(l);
347 0; 347 /* add your libraries here */
348 return res;
348} 349}
349 350
350 351