From f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 Jul 2008 14:51:01 -0300 Subject: do not use compatibility macros in Lua --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index 26453412..e8dbe1be 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.169 2008/06/26 19:40:12 roberto Exp roberto $ +** $Id: lua.c,v 1.170 2008/06/26 19:47:51 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -373,7 +373,7 @@ static int pmain (lua_State *L) { int main (int argc, char **argv) { int status; struct Smain s; - lua_State *L = lua_open(); /* create state */ + lua_State *L = luaL_newstate(); /* create state */ if (L == NULL) { l_message(argv[0], "cannot create state: not enough memory"); return EXIT_FAILURE; -- cgit v1.2.3-55-g6feb