print out function param info

This commit is contained in:
Bill Currie 2002-06-27 22:51:42 +00:00
parent 001571e25a
commit 536937b2e6

View file

@ -108,9 +108,9 @@ dump_fields (progs_t *pr)
void void
dump_functions (progs_t *pr) dump_functions (progs_t *pr)
{ {
int i; int i, j;
const char *name; const char *name;
int start; int start, count;
char *comment; char *comment;
for (i = 0; i < pr->progs->numfunctions; i++) { for (i = 0; i < pr->progs->numfunctions; i++) {
@ -126,6 +126,13 @@ dump_functions (progs_t *pr)
else else
comment = va (" = #%d", -start); comment = va (" = #%d", -start);
printf ("%s%s\n", name, comment); printf ("%s%s: %d", name, comment, func->numparms);
if (func->numparms < 0)
count = -func->numparms - 1;
else
count = func->numparms;
for (j = 0; j < count; j++)
printf (" %d", func->parm_size[j]);
puts ("");
} }
} }