diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-17 15:09:31 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-17 15:09:31 -0300 |
| commit | 2a1da648722470998c52f5ac39d765e45acd3756 (patch) | |
| tree | f9131580abfaae49c731e4da0408667dbe16b71f /table.c | |
| parent | 3c5d71cf775b9a70c10b49b332e23f8827e3f6ca (diff) | |
| download | lua-2a1da648722470998c52f5ac39d765e45acd3756.tar.gz lua-2a1da648722470998c52f5ac39d765e45acd3756.tar.bz2 lua-2a1da648722470998c52f5ac39d765e45acd3756.zip | |
"lua_getobjname" must return "tag-method" and not "fallback".
Diffstat (limited to '')
| -rw-r--r-- | table.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Module to control static tables | 3 | ** Module to control static tables |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_table="$Id: table.c,v 2.70 1997/05/26 14:42:51 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.71 1997/06/09 17:28:14 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include "luamem.h" | 8 | #include "luamem.h" |
| 9 | #include "auxlib.h" | 9 | #include "auxlib.h" |
| @@ -258,7 +258,7 @@ char *lua_getobjname (lua_Object o, char **name) | |||
| 258 | { /* try to find a name for given function */ | 258 | { /* try to find a name for given function */ |
| 259 | functofind = luaI_Address(o); | 259 | functofind = luaI_Address(o); |
| 260 | if ((*name = luaI_travfallbacks(checkfunc)) != NULL) | 260 | if ((*name = luaI_travfallbacks(checkfunc)) != NULL) |
| 261 | return "fallback"; | 261 | return "tag-method"; |
| 262 | else if ((*name = lua_travsymbol(checkfunc)) != NULL) | 262 | else if ((*name = lua_travsymbol(checkfunc)) != NULL) |
| 263 | return "global"; | 263 | return "global"; |
| 264 | else return ""; | 264 | else return ""; |
