LUA_PATH_SEP -> LUA_PATHSEP
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lauxlib.c,v 1.126 2004/09/29 21:03:14 roberto Exp roberto $
|
** $Id: lauxlib.c,v 1.127 2004/12/20 13:47:29 roberto Exp roberto $
|
||||||
** Auxiliary functions for building Lua libraries
|
** Auxiliary functions for building Lua libraries
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -350,8 +350,8 @@ LUALIB_API int luaL_getn (lua_State *L, int t) {
|
|||||||
static const char *pushnexttemplate (lua_State *L, const char *path) {
|
static const char *pushnexttemplate (lua_State *L, const char *path) {
|
||||||
const char *l;
|
const char *l;
|
||||||
if (*path == '\0') return NULL; /* no more templates */
|
if (*path == '\0') return NULL; /* no more templates */
|
||||||
if (*path == LUA_PATH_SEP) path++; /* skip separator */
|
if (*path == LUA_PATHSEP) path++; /* skip separator */
|
||||||
l = strchr(path, LUA_PATH_SEP); /* find next separator */
|
l = strchr(path, LUA_PATHSEP); /* find next separator */
|
||||||
if (l == NULL) l = path+strlen(path);
|
if (l == NULL) l = path+strlen(path);
|
||||||
lua_pushlstring(L, path, l - path); /* template */
|
lua_pushlstring(L, path, l - path); /* template */
|
||||||
return l;
|
return l;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: luaconf.h,v 1.26 2005/01/10 18:17:39 roberto Exp roberto $
|
** $Id: luaconf.h,v 1.27 2005/01/10 18:33:37 roberto Exp roberto $
|
||||||
** Configuration file for Lua
|
** Configuration file for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -346,7 +346,7 @@ __inline int l_lrint (double flt)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* separator of templates in a path */
|
/* separator of templates in a path */
|
||||||
#define LUA_PATH_SEP ';'
|
#define LUA_PATHSEP ';'
|
||||||
|
|
||||||
/* wild char in each template */
|
/* wild char in each template */
|
||||||
#define LUA_PATH_MARK "?"
|
#define LUA_PATH_MARK "?"
|
||||||
|
|||||||
Reference in New Issue
Block a user