diff options
-rw-r--r-- | ltm.c | 4 | ||||
-rw-r--r-- | ltm.h | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.37 2000/03/27 20:10:21 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.38 2000/03/29 20:19:20 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -52,7 +52,7 @@ static const char luaT_validevents[NUM_TAGS][IM_N] = { | |||
52 | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} /* TAG_NIL */ | 52 | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} /* TAG_NIL */ |
53 | }; | 53 | }; |
54 | 54 | ||
55 | static int luaT_validevent (int t, int e) { /* ORDER LUA_T */ | 55 | int luaT_validevent (int t, int e) { /* ORDER LUA_T */ |
56 | return (t > TAG_NIL) ? 1 : luaT_validevents[t][e]; | 56 | return (t > TAG_NIL) ? 1 : luaT_validevents[t][e]; |
57 | } | 57 | } |
58 | 58 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.h,v 1.10 2000/03/03 14:58:26 roberto Exp roberto $ | 2 | ** $Id: ltm.h,v 1.11 2000/03/20 19:14:54 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -52,6 +52,7 @@ int luaT_effectivetag (lua_State *L, const TObject *o); | |||
52 | void luaT_settagmethod (lua_State *L, int t, const char *event, TObject *func); | 52 | void luaT_settagmethod (lua_State *L, int t, const char *event, TObject *func); |
53 | const TObject *luaT_gettagmethod (lua_State *L, int t, const char *event); | 53 | const TObject *luaT_gettagmethod (lua_State *L, int t, const char *event); |
54 | const char *luaT_travtagmethods (lua_State *L, int (*fn)(lua_State *, TObject *)); | 54 | const char *luaT_travtagmethods (lua_State *L, int (*fn)(lua_State *, TObject *)); |
55 | int luaT_validevent (int t, int e); /* used by compatibility module */ | ||
55 | 56 | ||
56 | 57 | ||
57 | #endif | 58 | #endif |