simpler interface to hooks + use of `int' to count hooks

This commit is contained in:
Roberto Ierusalimschy
2002-11-25 15:47:13 -02:00
parent 9b1c586b2f
commit 5f698f8b6f
8 changed files with 41 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 1.106 2002/11/22 17:16:52 roberto Exp roberto $
** $Id: lstate.h,v 1.107 2002/11/22 18:01:46 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -143,8 +143,8 @@ struct lua_State {
lu_byte hookmask;
lu_byte allowhook;
lu_byte hookinit;
ls_count basehookcount;
ls_count hookcount;
int basehookcount;
int hookcount;
lua_Hook hook;
TObject _gt; /* table of globals */
GCObject *openupval; /* list of open upvalues in this stack */