aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-17 15:09:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-17 15:09:31 -0300
commit2a1da648722470998c52f5ac39d765e45acd3756 (patch)
treef9131580abfaae49c731e4da0408667dbe16b71f
parent3c5d71cf775b9a70c10b49b332e23f8827e3f6ca (diff)
downloadlua-2a1da648722470998c52f5ac39d765e45acd3756.tar.gz
lua-2a1da648722470998c52f5ac39d765e45acd3756.tar.bz2
lua-2a1da648722470998c52f5ac39d765e45acd3756.zip
"lua_getobjname" must return "tag-method" and not "fallback".
-rw-r--r--iolib.c2
-rw-r--r--table.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/iolib.c b/iolib.c
index 43adfd6e..c5d40318 100644
--- a/iolib.c
+++ b/iolib.c
@@ -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: {
diff --git a/table.c b/table.c
index b8b2ced7..1ca0b0ec 100644
--- a/table.c
+++ b/table.c
@@ -3,7 +3,7 @@
3** Module to control static tables 3** Module to control static tables
4*/ 4*/
5 5
6char *rcs_table="$Id: table.c,v 2.70 1997/05/26 14:42:51 roberto Exp roberto $"; 6char *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 "";