diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-22 16:01:38 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-22 16:01:38 -0200 |
commit | 6fda6a530265268c01a83c31f8fc30e34753bbf1 (patch) | |
tree | b1520902a04904c7ad3fbc703d818e98b5e9461c /lua.c | |
parent | 4ac58853dc820127a11a14ed8bde1fae9458369e (diff) | |
download | lua-6fda6a530265268c01a83c31f8fc30e34753bbf1.tar.gz lua-6fda6a530265268c01a83c31f8fc30e34753bbf1.tar.bz2 lua-6fda6a530265268c01a83c31f8fc30e34753bbf1.zip |
support for multiple stacks sharing the same global environment
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.55 2000/10/20 16:36:32 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.56 2001/01/10 16:58:11 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 | */ |
@@ -311,7 +311,7 @@ int main (int argc, char *argv[]) { | |||
311 | int status; | 311 | int status; |
312 | opt.toclose = 0; | 312 | opt.toclose = 0; |
313 | getstacksize(argc, argv, &opt); /* handle option `-s' */ | 313 | getstacksize(argc, argv, &opt); /* handle option `-s' */ |
314 | L = lua_open(opt.stacksize); /* create state */ | 314 | L = lua_open(NULL, opt.stacksize); /* create state */ |
315 | userinit(); /* open libraries */ | 315 | userinit(); /* open libraries */ |
316 | register_getargs(argv); /* create `getargs' function */ | 316 | register_getargs(argv); /* create `getargs' function */ |
317 | status = handle_argv(argv+1, &opt); | 317 | status = handle_argv(argv+1, &opt); |