aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
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 d390a7aa..f90da9a5 100644
--- a/lua.c
+++ b/lua.c
@@ -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"));