equal
deleted
inserted
replaced
162 static lua_State *Lsig = NULL; |
162 static lua_State *Lsig = NULL; |
163 static lua_Hook Hsig = NULL; |
163 static lua_Hook Hsig = NULL; |
164 static int Hmask = 0; |
164 static int Hmask = 0; |
165 static int Hcount = 0; |
165 static int Hcount = 0; |
166 |
166 |
167 int signals[MAX_PENDING_SIGNALS]; |
167 static int signals[MAX_PENDING_SIGNALS]; |
168 int nsig = 0; |
168 static int nsig = 0; |
169 |
169 |
170 static void sighook(lua_State *L, lua_Debug *ar) { |
170 static void sighook(lua_State *L, lua_Debug *ar) { |
171 (void)ar; |
171 (void)ar; |
172 /* restore the old hook */ |
172 /* restore the old hook */ |
173 lua_sethook(L, Hsig, Hmask, Hcount); |
173 lua_sethook(L, Hsig, Hmask, Hcount); |