diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-30 13:41:51 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-30 13:41:51 -0300 |
commit | e2c60eda16d4aff7ea42513ba7c4d33ac45d9e99 (patch) | |
tree | e998bd030675e7d39d4bc0fd2ae94ecb28433fd2 | |
parent | a69356e9e0a7525b1cebadc928a0efcce8c39b46 (diff) | |
download | lua-e2c60eda16d4aff7ea42513ba7c4d33ac45d9e99.tar.gz lua-e2c60eda16d4aff7ea42513ba7c4d33ac45d9e99.tar.bz2 lua-e2c60eda16d4aff7ea42513ba7c4d33ac45d9e99.zip |
`luaT_validevent' is exported, because compatibility module for fallbacks
uses it.
-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 |