aboutsummaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'output.c')
-rw-r--r--output.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/output.c b/output.c
index f30c9fe..cb37ce6 100644
--- a/output.c
+++ b/output.c
@@ -191,26 +191,23 @@ void output_left(enum tof type, struct process *proc, char *function_name)
func = name2func(function_name);
if (!func) {
int i;
- arg_type_info info = *arg_unknown;
for (i = 0; i < 4; i++) {
- info.arg_num = i;
current_column +=
- display_arg(type, proc, &info);
+ display_arg(type, proc, i, arg_unknown);
current_column += fprintf(output, ", ");
}
- info.arg_num = 4;
- current_column += display_arg(type, proc, &info);
+ current_column += display_arg(type, proc, 4, arg_unknown);
return;
} else {
int i;
for (i = 0; i < func->num_params - func->params_right - 1; i++) {
current_column +=
- display_arg(type, proc, func->arg_info[i]);
+ display_arg(type, proc, i, func->arg_info[i]);
current_column += fprintf(output, ", ");
}
if (func->num_params > func->params_right) {
current_column +=
- display_arg(type, proc, func->arg_info[i]);
+ display_arg(type, proc, i, func->arg_info[i]);
if (func->params_right) {
current_column += fprintf(output, ", ");
}
@@ -279,23 +276,21 @@ void output_right(enum tof type, struct process *proc, char *function_name)
}
if (!func) {
- arg_type_info info = *arg_unknown;
current_column += fprintf(output, ") ");
tabto(opt_a - 1);
fprintf(output, "= ");
- info.arg_num = -1;
- display_arg(type, proc, &info);
+ display_arg(type, proc, -1, arg_unknown);
} else {
int i;
for (i = func->num_params - func->params_right;
i < func->num_params - 1; i++) {
current_column +=
- display_arg(type, proc, func->arg_info[i]);
+ display_arg(type, proc, i, func->arg_info[i]);
current_column += fprintf(output, ", ");
}
if (func->params_right) {
current_column +=
- display_arg(type, proc, func->arg_info[i]);
+ display_arg(type, proc, i, func->arg_info[i]);
}
current_column += fprintf(output, ") ");
tabto(opt_a - 1);
@@ -303,7 +298,7 @@ void output_right(enum tof type, struct process *proc, char *function_name)
if (func->return_info->type == ARGTYPE_VOID) {
fprintf(output, "<void>");
} else {
- display_arg(type, proc, func->return_info);
+ display_arg(type, proc, -1, func->return_info);
}
}
if (opt_T) {