aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-11 16:42:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-11 16:42:57 -0300
commit30f6e658d2071d23309e4ac70dd8ec199049aff4 (patch)
tree905c4d0db5ad6fd8fcf51d9542bd3751cc87a4be /lua.c
parent787a78f83e0484c9e9698189982e2f309808fae8 (diff)
downloadlua-30f6e658d2071d23309e4ac70dd8ec199049aff4.tar.gz
lua-30f6e658d2071d23309e4ac70dd8ec199049aff4.tar.bz2
lua-30f6e658d2071d23309e4ac70dd8ec199049aff4.zip
`lua_newstate' renamed to `lua_open'
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 05da8bfb..a9e98b33 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.49 2000/08/31 20:23:40 roberto Exp roberto $ 2** $Id: lua.c,v 1.50 2000/09/05 19:33:32 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*/
@@ -314,7 +314,7 @@ int main (int argc, char *argv[]) {
314 int status; 314 int status;
315 opt.toclose = 0; 315 opt.toclose = 0;
316 getstacksize(argc, argv, &opt); /* handle option `-s' */ 316 getstacksize(argc, argv, &opt); /* handle option `-s' */
317 L = lua_newstate(opt.stacksize); /* create state */ 317 L = lua_open(opt.stacksize); /* create state */
318 USERINIT(); /* open libraries */ 318 USERINIT(); /* open libraries */
319 register_getargs(argv); /* create `getargs' function */ 319 register_getargs(argv); /* create `getargs' function */
320 status = handle_argv(argv+1, &opt); 320 status = handle_argv(argv+1, &opt);