From c5fcba1a17b6ccc3c706b40d77dffda78dbe53d6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 7 Oct 2013 11:20:31 -0300 Subject: detail (changing some names of macros) --- lua.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lua.c') 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; -- cgit v1.2.3-55-g6feb