summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-10-07 11:20:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-10-07 11:20:31 -0300
commitc5fcba1a17b6ccc3c706b40d77dffda78dbe53d6 (patch)
tree7d66c875947779cb5ae5a726cf46ca1979cab344 /lua.c
parent4c6dfc342b026a51bfe3e2d56b1032fb670a2577 (diff)
downloadlua-github-c5fcba1a17b6ccc3c706b40d77dffda78dbe53d6.tar.gz
detail (changing some names of macros)
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lua.c b/lua.c
index f7acc835..267e42e4 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
/*
-** $Id: lua.c,v 1.205 2012/05/23 15:37:09 roberto Exp roberto $
+** $Id: lua.c,v 1.206 2012/09/29 20:07:06 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -31,12 +31,12 @@
#define LUA_MAXINPUT 512
#endif
-#if !defined(LUA_INIT)
-#define LUA_INIT "LUA_INIT"
+#if !defined(LUA_INIT_VAR)
+#define LUA_INIT_VAR "LUA_INIT"
#endif
-#define LUA_INITVERSION \
- LUA_INIT "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR
+#define LUA_INITVARVERSION \
+ LUA_INIT_VAR "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR
/*
@@ -421,10 +421,10 @@ static int runargs (lua_State *L, char **argv, int n) {
static int handle_luainit (lua_State *L) {
- const char *name = "=" LUA_INITVERSION;
+ const char *name = "=" LUA_INITVARVERSION;
const char *init = getenv(name + 1);
if (init == NULL) {
- name = "=" LUA_INIT;
+ name = "=" LUA_INIT_VAR;
init = getenv(name + 1); /* try alternative name */
}
if (init == NULL) return LUA_OK;