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 | |
parent | 3c5d71cf775b9a70c10b49b332e23f8827e3f6ca (diff) | |
download | lua-2a1da648722470998c52f5ac39d765e45acd3756.tar.gz lua-2a1da648722470998c52f5ac39d765e45acd3756.tar.bz2 lua-2a1da648722470998c52f5ac39d765e45acd3756.zip |
"lua_getobjname" must return "tag-method" and not "fallback".
-rw-r--r-- | iolib.c | 2 | ||||
-rw-r--r-- | table.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -247,7 +247,7 @@ static void lua_printstack (FILE *f) | |||
247 | case 'g': | 247 | case 'g': |
248 | fprintf(f, "function %s", name); | 248 | fprintf(f, "function %s", name); |
249 | break; | 249 | break; |
250 | case 'f': | 250 | case 't': |
251 | fprintf(f, "`%s' tag method", name); | 251 | fprintf(f, "`%s' tag method", name); |
252 | break; | 252 | break; |
253 | default: { | 253 | default: { |
@@ -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 ""; |