aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-05-22 11:40:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-05-22 11:40:34 -0300
commit17dbaa8639505c9ad1a9946591f5960123fbd741 (patch)
treec078795bfb4a748ca05faabefafab4e35493714a /lstate.h
parent9514abc2da3525ef4314a8fcf70982ad07319e51 (diff)
downloadlua-17dbaa8639505c9ad1a9946591f5960123fbd741.tar.gz
lua-17dbaa8639505c9ad1a9946591f5960123fbd741.tar.bz2
lua-17dbaa8639505c9ad1a9946591f5960123fbd741.zip
Improvements in the handling of signals
Added 'volatile' to 'l_signalT' variables plus some minor changes.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index df9148eb..2e8bd6c4 100644
--- a/lstate.h
+++ b/lstate.h
@@ -173,7 +173,7 @@ typedef struct CallInfo {
173 union { 173 union {
174 struct { /* only for Lua functions */ 174 struct { /* only for Lua functions */
175 const Instruction *savedpc; 175 const Instruction *savedpc;
176 l_signalT trap; 176 volatile l_signalT trap;
177 int nextraargs; /* # of extra arguments in vararg functions */ 177 int nextraargs; /* # of extra arguments in vararg functions */
178 } l; 178 } l;
179 struct { /* only for C functions */ 179 struct { /* only for C functions */
@@ -300,7 +300,7 @@ struct lua_State {
300 int stacksize; 300 int stacksize;
301 int basehookcount; 301 int basehookcount;
302 int hookcount; 302 int hookcount;
303 l_signalT hookmask; 303 volatile l_signalT hookmask;
304}; 304};
305 305
306 306