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 /table.c | |
| parent | 2b45f8967c459154f0d893c94b069dba182dec00 (diff) | |
| download | lua-ebcf546a551cae37835af5ddf6105e2e97706047.tar.gz lua-ebcf546a551cae37835af5ddf6105e2e97706047.tar.bz2 lua-ebcf546a551cae37835af5ddf6105e2e97706047.zip | |
small changes in the format of debug information.
Diffstat (limited to 'table.c')
| -rw-r--r-- | table.c | 12 |
1 files changed, 8 insertions, 4 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.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 | ||
