diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-11 16:42:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-11 16:42:57 -0300 |
commit | 30f6e658d2071d23309e4ac70dd8ec199049aff4 (patch) | |
tree | 905c4d0db5ad6fd8fcf51d9542bd3751cc87a4be /lstate.c | |
parent | 787a78f83e0484c9e9698189982e2f309808fae8 (diff) | |
download | lua-30f6e658d2071d23309e4ac70dd8ec199049aff4.tar.gz lua-30f6e658d2071d23309e4ac70dd8ec199049aff4.tar.bz2 lua-30f6e658d2071d23309e4ac70dd8ec199049aff4.zip |
`lua_newstate' renamed to `lua_open'
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.36 2000/09/05 19:33:32 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.37 2000/09/11 17:38:42 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -25,7 +25,7 @@ void luaB_opentests (lua_State *L); | |||
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | 27 | ||
28 | lua_State *lua_newstate (int stacksize) { | 28 | lua_State *lua_open (int stacksize) { |
29 | struct lua_longjmp myErrorJmp; | 29 | struct lua_longjmp myErrorJmp; |
30 | lua_State *L = luaM_new(NULL, lua_State); | 30 | lua_State *L = luaM_new(NULL, lua_State); |
31 | if (L == NULL) return NULL; /* memory allocation error */ | 31 | if (L == NULL) return NULL; /* memory allocation error */ |