From adc6a4865bfd12339ad7c31b43ba26206d385517 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Dec 2009 11:07:41 -0200 Subject: macro name change: LUA_INIT->LUA_INIT_VAR --- lua.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index 0848bcdb..a3b9e663 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.177 2009/12/11 13:40:44 roberto Exp roberto $ +** $Id: lua.c,v 1.178 2009/12/17 12:26:09 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -31,8 +31,8 @@ #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 @@ -394,12 +394,12 @@ static int runargs (lua_State *L, char **argv, int n) { static int handle_luainit (lua_State *L) { - const char *init = getenv(LUA_INIT); + const char *init = getenv(LUA_INIT_VAR); if (init == NULL) return LUA_OK; else if (init[0] == '@') return dofile(L, init+1); else - return dostring(L, init, "=" LUA_INIT); + return dostring(L, init, "=" LUA_INIT_VAR); } -- cgit v1.2.3-55-g6feb