diff options
-rw-r--r-- | lauxlib.c | 6 | ||||
-rw-r--r-- | luaconf.h | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -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) { | |||
350 | static const char *pushnexttemplate (lua_State *L, const char *path) { | 350 | static 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; |
@@ -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 "?" |