aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
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 b8a8cb65..c0769327 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.107 2002/11/14 15:41:38 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.108 2002/11/18 11:20:01 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*/
@@ -78,7 +78,7 @@ static int luaB_error (lua_State *L) {
78 int level = luaL_optint(L, 2, 1); 78 int level = luaL_optint(L, 2, 1);
79 luaL_checkany(L, 1); 79 luaL_checkany(L, 1);
80 if (!lua_isstring(L, 1) || level == 0) 80 if (!lua_isstring(L, 1) || level == 0)
81 lua_pushvalue(L, 1); /* propagate error mesage without changes */ 81 lua_pushvalue(L, 1); /* propagate error message without changes */
82 else { /* add extra information */ 82 else { /* add extra information */
83 luaL_where(L, level); 83 luaL_where(L, level);
84 lua_pushvalue(L, 1); 84 lua_pushvalue(L, 1);
@@ -440,7 +440,7 @@ static const char *getpath (lua_State *L) {
440 440
441static const char *pushnextpath (lua_State *L, const char *path) { 441static const char *pushnextpath (lua_State *L, const char *path) {
442 const char *l; 442 const char *l;
443 if (*path == '\0') return NULL; /* no more pathes */ 443 if (*path == '\0') return NULL; /* no more paths */
444 if (*path == LUA_PATH_SEP) path++; /* skip separator */ 444 if (*path == LUA_PATH_SEP) path++; /* skip separator */
445 l = strchr(path, LUA_PATH_SEP); /* find next separator */ 445 l = strchr(path, LUA_PATH_SEP); /* find next separator */
446 if (l == NULL) l = path+strlen(path); 446 if (l == NULL) l = path+strlen(path);