Improvements in the handling of signals

Added 'volatile' to 'l_signalT' variables plus some minor changes.
This commit is contained in:
Roberto Ierusalimschy
2020-05-22 11:40:34 -03:00
parent 9514abc2da
commit 17dbaa8639
5 changed files with 25 additions and 21 deletions

View File

@@ -173,7 +173,7 @@ typedef struct CallInfo {
union {
struct { /* only for Lua functions */
const Instruction *savedpc;
l_signalT trap;
volatile l_signalT trap;
int nextraargs; /* # of extra arguments in vararg functions */
} l;
struct { /* only for C functions */
@@ -300,7 +300,7 @@ struct lua_State {
int stacksize;
int basehookcount;
int hookcount;
l_signalT hookmask;
volatile l_signalT hookmask;
};