Changeset 2541
- Timestamp:
- Mar 2, 2013, 4:33:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua.c
r2540 r2541 6 6 7 7 8 #if 0 // LOL BEGIN 8 9 #include <signal.h> 10 #endif // LOL END 9 11 #include <stdio.h> 10 12 #include <stdlib.h> … … 86 88 87 89 90 #if 0 // LOL BEGIN 88 91 static lua_State *globalL = NULL; 92 #endif // LOL END 89 93 90 94 static const char *progname = LUA_PROGNAME; … … 99 103 100 104 105 #if 0 // LOL BEGIN 101 106 static void laction (int i) { 102 107 signal(i, SIG_DFL); /* if another SIGINT happens before lstop, … … 104 109 lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1); 105 110 } 111 #endif // LOL END 106 112 107 113 … … 175 181 lua_pushcfunction(L, traceback); /* push traceback function */ 176 182 lua_insert(L, base); /* put it under chunk and args */ 183 #if 0 // LOL BEGIN 177 184 globalL = L; /* to be available to 'laction' */ 178 185 signal(SIGINT, laction); 186 #endif // LOL END 179 187 status = lua_pcall(L, narg, nres, base); 188 #if 0 // LOL BEGIN 180 189 signal(SIGINT, SIG_DFL); 190 #endif // LOL END 181 191 lua_remove(L, base); /* remove traceback function */ 182 192 return status;
Note: See TracChangeset
for help on using the changeset viewer.