diff options
-rw-r--r-- | ldo.c | 5 | ||||
-rw-r--r-- | lua.c | 4 |
2 files changed, 4 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.142 2001/10/02 16:45:03 roberto Exp $ | 2 | ** $Id: ldo.c,v 1.143 2001/10/17 21:12:57 roberto Exp $ |
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 | */ |
@@ -219,7 +219,6 @@ static void f_parser (lua_State *L, void *ud) { | |||
219 | luaF_LConlist(L, cl); | 219 | luaF_LConlist(L, cl); |
220 | setclvalue(L->top, cl); | 220 | setclvalue(L->top, cl); |
221 | incr_top; | 221 | incr_top; |
222 | |||
223 | } | 222 | } |
224 | 223 | ||
225 | 224 | ||
@@ -287,7 +286,7 @@ LUA_API int lua_loadbuffer (lua_State *L, const l_char *buff, size_t size, | |||
287 | 286 | ||
288 | /* | 287 | /* |
289 | ** {====================================================== | 288 | ** {====================================================== |
290 | ** Error-recover functions (based on long jumps) | 289 | ** Error-recovery functions (based on long jumps) |
291 | ** ======================================================= | 290 | ** ======================================================= |
292 | */ | 291 | */ |
293 | 292 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.70 2001/09/25 17:06:34 roberto Exp $ | 2 | ** $Id: lua.c,v 1.71 2001/10/17 21:12:57 roberto Exp $ |
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 | */ |
@@ -81,9 +81,9 @@ static int ldo (int (*f)(lua_State *l, const l_char *), const l_char *name, | |||
81 | handler h = lreset(); | 81 | handler h = lreset(); |
82 | int top = lua_gettop(L); | 82 | int top = lua_gettop(L); |
83 | res = f(L, name); /* dostring | dofile */ | 83 | res = f(L, name); /* dostring | dofile */ |
84 | signal(SIGINT, h); /* restore old action */ | ||
84 | if (clear) | 85 | if (clear) |
85 | lua_settop(L, top); /* remove eventual results */ | 86 | lua_settop(L, top); /* remove eventual results */ |
86 | signal(SIGINT, h); /* restore old action */ | ||
87 | /* Lua gives no message in such cases, so lua.c provides one */ | 87 | /* Lua gives no message in such cases, so lua.c provides one */ |
88 | if (res == LUA_ERRMEM) { | 88 | if (res == LUA_ERRMEM) { |
89 | fprintf(stderr, LUA_PROGNAME l_s("memory allocation error\n")); | 89 | fprintf(stderr, LUA_PROGNAME l_s("memory allocation error\n")); |