aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
commit88607acc2c41c2bace172b78012d2ce9abf05766 (patch)
tree6283e23fe6acce3fb68e0abeb2410e7cdf816f90 /lbaselib.c
parent6de93e29321bedb4f9ebd14bdcc04b942b0aad57 (diff)
downloadlua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.gz
lua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.bz2
lua-88607acc2c41c2bace172b78012d2ce9abf05766.zip
details
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 85f658db..aeb213b9 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.84 2002/06/24 17:23:16 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.85 2002/06/25 19:19:33 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -357,7 +357,7 @@ static int luaB_newproxy (lua_State *L) {
357#endif 357#endif
358 358
359#ifndef LUA_PATH_DEFAULT 359#ifndef LUA_PATH_DEFAULT
360#define LUA_PATH_DEFAULT "?.lua" 360#define LUA_PATH_DEFAULT "?;?.lua"
361#endif 361#endif
362 362
363 363
@@ -403,7 +403,7 @@ static int luaB_require (lua_State *L) {
403 lua_pushvalue(L, 1); 403 lua_pushvalue(L, 1);
404 lua_setglobal(L, "_REQUIREDNAME"); 404 lua_setglobal(L, "_REQUIREDNAME");
405 lua_getglobal(L, REQTAB); 405 lua_getglobal(L, REQTAB);
406 if (!lua_istable(L, 2)) return luaL_error(L, REQTAB " is not a table"); 406 if (!lua_istable(L, 2)) return luaL_error(L, "`" REQTAB "' is not a table");
407 path = getpath(L); 407 path = getpath(L);
408 lua_pushvalue(L, 1); /* check package's name in book-keeping table */ 408 lua_pushvalue(L, 1); /* check package's name in book-keeping table */
409 lua_rawget(L, 2); 409 lua_rawget(L, 2);