diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-16 17:02:48 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-16 17:02:48 -0300 |
commit | 4494094031d3785b4527a9baf572cb1e272aa9d2 (patch) | |
tree | a65b7c1c86c55cc898f1316e82c4015f32cd3646 | |
parent | 04bbd0117174911a489ca7d2603c1e8717565405 (diff) | |
download | lua-4494094031d3785b4527a9baf572cb1e272aa9d2.tar.gz lua-4494094031d3785b4527a9baf572cb1e272aa9d2.tar.bz2 lua-4494094031d3785b4527a9baf572cb1e272aa9d2.zip |
detail
-rw-r--r-- | ldo.c | 3 | ||||
-rw-r--r-- | lgc.c | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.16 2005/03/08 20:10:05 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.17 2005/03/09 16:28:07 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -74,6 +74,7 @@ void luaD_throw (lua_State *L, int errcode) { | |||
74 | LUAI_THROW(L, L->errorJmp); | 74 | LUAI_THROW(L, L->errorJmp); |
75 | } | 75 | } |
76 | else { | 76 | else { |
77 | L->status = errcode; | ||
77 | if (G(L)->panic) G(L)->panic(L); | 78 | if (G(L)->panic) G(L)->panic(L); |
78 | exit(EXIT_FAILURE); | 79 | exit(EXIT_FAILURE); |
79 | } | 80 | } |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.28 2005/03/08 20:10:05 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.29 2005/03/09 16:28:07 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -539,7 +539,7 @@ static void atomic (lua_State *L) { | |||
539 | propagateall(g); /* remark, to propagate `preserveness' */ | 539 | propagateall(g); /* remark, to propagate `preserveness' */ |
540 | cleartable(g->weak); /* remove collected objects from weak tables */ | 540 | cleartable(g->weak); /* remove collected objects from weak tables */ |
541 | /* flip current white */ | 541 | /* flip current white */ |
542 | g->currentwhite = otherwhite(g); | 542 | g->currentwhite = cast(lu_byte, otherwhite(g)); |
543 | g->sweepstrgc = 0; | 543 | g->sweepstrgc = 0; |
544 | g->sweepgc = &g->rootgc; | 544 | g->sweepgc = &g->rootgc; |
545 | g->gcstate = GCSsweepstring; | 545 | g->gcstate = GCSsweepstring; |