new representation for hooks (to allow asynchronous calls to sethook)

This commit is contained in:
Roberto Ierusalimschy
2002-11-18 09:01:55 -02:00
parent 94912d99fc
commit 43013b39cc
8 changed files with 59 additions and 44 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 1.100 2002/11/06 19:08:00 roberto Exp roberto $
** $Id: lstate.h,v 1.101 2002/11/13 11:31:39 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -139,7 +139,10 @@ struct lua_State {
CallInfo *end_ci; /* points after end of ci array*/
CallInfo *base_ci; /* array of CallInfo's */
int size_ci; /* size of array `base_ci' */
unsigned long hookmask;
lu_byte hookmask;
lu_byte allowhook;
lu_byte hookinit;
ls_count basehookcount;
ls_count hookcount;
lua_Hook hook;
TObject _gt; /* table of globals */