Comparison

util-src/signal.c @ 10480:94cacf9fd0ae

util.*.c: Add static qualifiers everywhere
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 01 Dec 2019 20:25:20 +0100
parent 9151:fee3933ff346
child 10799:763bb2ce3f60
comparison
equal deleted inserted replaced
10479:d362934437eb 10480:94cacf9fd0ae
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);