diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 11:12:07 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 11:12:07 -0200 |
commit | 29ede6aa13144ff7b69c57a87be1ee93f57ae896 (patch) | |
tree | adcfb5dcff7db55481cd675349e23dec0e63c939 /ltm.h | |
parent | 951897c09319ae5474a4b86bb7d615136577caa0 (diff) | |
download | lua-github-29ede6aa13144ff7b69c57a87be1ee93f57ae896.tar.gz |
first implementation of multiple states (reentrant code).
Diffstat (limited to 'ltm.h')
-rw-r--r-- | ltm.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,5 +1,5 @@ /* -** $Id: ltm.h,v 1.6 1999/08/16 20:52:00 roberto Exp roberto $ +** $Id: ltm.h,v 1.7 1999/09/20 14:57:29 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -44,18 +44,18 @@ struct IM { }; -#define luaT_getim(tag,event) (&L->IMtable[-(tag)].int_method[event]) -#define luaT_getimbyObj(o,e) (luaT_getim(luaT_effectivetag(o),(e))) +#define luaT_getim(L,tag,event) (&L->IMtable[-(tag)].int_method[event]) +#define luaT_getimbyObj(L,o,e) (luaT_getim(L, luaT_effectivetag(o),(e))) extern const char *const luaT_eventname[]; -void luaT_init (void); -void luaT_realtag (int tag); +void luaT_init (lua_State *L); +void luaT_realtag (lua_State *L, int tag); int luaT_effectivetag (const TObject *o); -void luaT_settagmethod (int t, const char *event, TObject *func); -const TObject *luaT_gettagmethod (int t, const char *event); -const char *luaT_travtagmethods (int (*fn)(TObject *)); +void luaT_settagmethod (lua_State *L, int t, const char *event, TObject *func); +const TObject *luaT_gettagmethod (lua_State *L, int t, const char *event); +const char *luaT_travtagmethods (lua_State *L, int (*fn)(lua_State *, TObject *)); int luaT_validevent (int t, int e); |