diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-07-11 14:51:01 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-07-11 14:51:01 -0300 |
commit | f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1 (patch) | |
tree | 2960bf3965cc4dcba6d1d29f0632e2ed1cac1498 /lua.c | |
parent | 6b8725b0eec4379ec810727cc1dccae6feeff21e (diff) | |
download | lua-f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1.tar.gz lua-f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1.tar.bz2 lua-f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1.zip |
do not use compatibility macros in Lua
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.169 2008/06/26 19:40:12 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.170 2008/06/26 19:47:51 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -373,7 +373,7 @@ static int pmain (lua_State *L) { | |||
373 | int main (int argc, char **argv) { | 373 | int main (int argc, char **argv) { |
374 | int status; | 374 | int status; |
375 | struct Smain s; | 375 | struct Smain s; |
376 | lua_State *L = lua_open(); /* create state */ | 376 | lua_State *L = luaL_newstate(); /* create state */ |
377 | if (L == NULL) { | 377 | if (L == NULL) { |
378 | l_message(argv[0], "cannot create state: not enough memory"); | 378 | l_message(argv[0], "cannot create state: not enough memory"); |
379 | return EXIT_FAILURE; | 379 | return EXIT_FAILURE; |