aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-02-10 15:12:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-02-10 15:12:02 -0200
commitaf39352632864b1961a554a560bee2c758666b2a (patch)
tree39bb5183583f618f326bcdd906db0aacce10e10b
parent4df8800a01c7e44800ce59339c66b9257cd75c2a (diff)
downloadlua-af39352632864b1961a554a560bee2c758666b2a.tar.gz
lua-af39352632864b1961a554a560bee2c758666b2a.tar.bz2
lua-af39352632864b1961a554a560bee2c758666b2a.zip
LUA_PATH_SEP -> LUA_PATHSEP
-rw-r--r--lauxlib.c6
-rw-r--r--luaconf.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/lauxlib.c b/lauxlib.c
index cd947eeb..79f939da 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.126 2004/09/29 21:03:14 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.127 2004/12/20 13:47:29 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -350,8 +350,8 @@ LUALIB_API int luaL_getn (lua_State *L, int t) {
350static const char *pushnexttemplate (lua_State *L, const char *path) { 350static const char *pushnexttemplate (lua_State *L, const char *path) {
351 const char *l; 351 const char *l;
352 if (*path == '\0') return NULL; /* no more templates */ 352 if (*path == '\0') return NULL; /* no more templates */
353 if (*path == LUA_PATH_SEP) path++; /* skip separator */ 353 if (*path == LUA_PATHSEP) path++; /* skip separator */
354 l = strchr(path, LUA_PATH_SEP); /* find next separator */ 354 l = strchr(path, LUA_PATHSEP); /* find next separator */
355 if (l == NULL) l = path+strlen(path); 355 if (l == NULL) l = path+strlen(path);
356 lua_pushlstring(L, path, l - path); /* template */ 356 lua_pushlstring(L, path, l - path); /* template */
357 return l; 357 return l;
diff --git a/luaconf.h b/luaconf.h
index d74f1b9d..f7ad9a2b 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.26 2005/01/10 18:17:39 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.27 2005/01/10 18:33:37 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -346,7 +346,7 @@ __inline int l_lrint (double flt)
346#endif 346#endif
347 347
348/* separator of templates in a path */ 348/* separator of templates in a path */
349#define LUA_PATH_SEP ';' 349#define LUA_PATHSEP ';'
350 350
351/* wild char in each template */ 351/* wild char in each template */
352#define LUA_PATH_MARK "?" 352#define LUA_PATH_MARK "?"