diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-23 11:53:48 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-23 11:53:48 -0200 |
commit | ebcf546a551cae37835af5ddf6105e2e97706047 (patch) | |
tree | d35cabde0399e65e42424048612cafbc43f908e1 | |
parent | 2b45f8967c459154f0d893c94b069dba182dec00 (diff) | |
download | lua-ebcf546a551cae37835af5ddf6105e2e97706047.tar.gz lua-ebcf546a551cae37835af5ddf6105e2e97706047.tar.bz2 lua-ebcf546a551cae37835af5ddf6105e2e97706047.zip |
small changes in the format of debug information.
-rw-r--r-- | iolib.c | 9 | ||||
-rw-r--r-- | table.c | 12 |
2 files changed, 13 insertions, 8 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Input/output library to LUA | 3 | ** Input/output library to LUA |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_iolib="$Id: iolib.c,v 1.23 1995/10/11 20:50:56 roberto Exp roberto $"; | 6 | char *rcs_iolib="$Id: iolib.c,v 1.24 1995/10/17 14:12:45 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include <ctype.h> | 9 | #include <ctype.h> |
@@ -617,14 +617,15 @@ static void print_message (void) | |||
617 | lua_funcinfo(func, &filename, &funcname, &objname, &linedefined); | 617 | lua_funcinfo(func, &filename, &funcname, &objname, &linedefined); |
618 | if (objname == NULL) | 618 | if (objname == NULL) |
619 | if (funcname) | 619 | if (funcname) |
620 | fprintf(stderr, "\t%s\n", funcname); | 620 | fprintf(stderr, "\t%s", funcname); |
621 | else | 621 | else |
622 | { | 622 | { |
623 | fprintf(stderr, "\tmain of %s\n", filename); | 623 | fprintf(stderr, "\tmain of %s\n", filename); |
624 | continue; | ||
624 | } | 625 | } |
625 | else | 626 | else |
626 | fprintf(stderr, "\t%s:%s\n", objname, funcname); | 627 | fprintf(stderr, "\t%s:%s", objname, funcname); |
627 | /* fprintf(stderr, "\t(in file: %s)\n", filename); */ | 628 | fprintf(stderr, "\t(defined in %s)\n", filename); |
628 | } | 629 | } |
629 | } | 630 | } |
630 | 631 | ||
@@ -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.34 1995/10/13 15:16:25 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.35 1995/10/17 11:58:41 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <string.h> | 8 | #include <string.h> |
9 | 9 | ||
@@ -277,12 +277,16 @@ void luaI_funcInfo (struct Object *func, char **filename, char **funcname, | |||
277 | { | 277 | { |
278 | /* temporario: */ | 278 | /* temporario: */ |
279 | cfunc = func->value.f; | 279 | cfunc = func->value.f; |
280 | *filename = "(?)"; | 280 | *filename = "(C)"; |
281 | *objname = 0; | ||
282 | *linedefined = 0; | 281 | *linedefined = 0; |
283 | *funcname = lua_travsymbol(checkfunc); | 282 | *funcname = lua_travsymbol(checkfunc); |
284 | if (*funcname == NULL) | 283 | if (*funcname) |
284 | *objname = 0; | ||
285 | else | ||
286 | { | ||
285 | *funcname = luaI_travfallbacks(checkfunc); | 287 | *funcname = luaI_travfallbacks(checkfunc); |
288 | *objname = "(FB)"; | ||
289 | } | ||
286 | } | 290 | } |
287 | } | 291 | } |
288 | 292 | ||