aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-12-16 14:39:38 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-12-16 14:39:38 -0200
commitc4e01c568aa498fbf141c13589c3cefdd7d9457e (patch)
treee802ceb588f37b2e7b068fe218e8c03aea07b872
parentbda090b96168eb2080259cad70f1d830e42f2cb4 (diff)
downloadlua-c4e01c568aa498fbf141c13589c3cefdd7d9457e.tar.gz
lua-c4e01c568aa498fbf141c13589c3cefdd7d9457e.tar.bz2
lua-c4e01c568aa498fbf141c13589c3cefdd7d9457e.zip
make 'hook' volatile (as it may be changed in signal handling)
-rw-r--r--lstate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index 70cf52ba..17965d88 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.128 2015/11/13 12:16:51 roberto Exp roberto $ 2** $Id: lstate.h,v 2.129 2015/12/14 11:54:49 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -171,7 +171,7 @@ struct lua_State {
171 struct lua_State *twups; /* list of threads with open upvalues */ 171 struct lua_State *twups; /* list of threads with open upvalues */
172 struct lua_longjmp *errorJmp; /* current error recover point */ 172 struct lua_longjmp *errorJmp; /* current error recover point */
173 CallInfo base_ci; /* CallInfo for first level (C calling Lua) */ 173 CallInfo base_ci; /* CallInfo for first level (C calling Lua) */
174 lua_Hook hook; 174 volatile lua_Hook hook;
175 ptrdiff_t errfunc; /* current error handling function (stack index) */ 175 ptrdiff_t errfunc; /* current error handling function (stack index) */
176 int stacksize; 176 int stacksize;
177 int basehookcount; 177 int basehookcount;