Commit 22a4158c by Gabriel Dos Reis Committed by Gabriel Dos Reis

* error.c (cp_tree_printer): Rework.

From-SVN: r35981
parent 135ebc36
2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
* error.c (cp_tree_printer): Rework.
2000-08-25 Mark Mitchell <mark@codesourcery.com> 2000-08-25 Mark Mitchell <mark@codesourcery.com>
* Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
......
...@@ -2651,44 +2651,51 @@ cp_tree_printer (buffer) ...@@ -2651,44 +2651,51 @@ cp_tree_printer (buffer)
++output_buffer_text_cursor (buffer); ++output_buffer_text_cursor (buffer);
} }
if (*output_buffer_text_cursor (buffer) == 'P')
print_function_parameter
(buffer, va_arg (output_buffer_format_args (buffer), int));
else
{
tree_being_formatted (&tfi) =
va_arg (output_buffer_format_args (buffer), tree);
switch (*output_buffer_text_cursor (buffer)) switch (*output_buffer_text_cursor (buffer))
{ {
case 'A': case 'A':
tree_being_formatted (&tfi) =
va_arg (output_buffer_format_args (buffer), tree);
print_function_argument_list (buffer, &tfi); print_function_argument_list (buffer, &tfi);
break; break;
case 'D': case 'D':
tree_being_formatted (&tfi) =
va_arg (output_buffer_format_args (buffer), tree);
print_declaration (buffer, &tfi); print_declaration (buffer, &tfi);
break; break;
case 'E': case 'E':
tree_being_formatted (&tfi) =
va_arg (output_buffer_format_args (buffer), tree);
print_expression (buffer, &tfi); print_expression (buffer, &tfi);
break; break;
case 'F': case 'F':
tree_being_formatted (&tfi) =
va_arg (output_buffer_format_args (buffer), tree);
print_function_declaration (buffer, &tfi); print_function_declaration (buffer, &tfi);
break; break;
case 'P':
print_function_parameter
(buffer, va_arg (output_buffer_format_args (buffer), int));
case 'T': case 'T':
tree_being_formatted (&tfi) =
va_arg (output_buffer_format_args (buffer), tree);
print_type (buffer, &tfi); print_type (buffer, &tfi);
break; break;
case 'V': case 'V':
tree_being_formatted (&tfi) =
va_arg (output_buffer_format_args (buffer), tree);
print_cv_qualifier (buffer, &tfi); print_cv_qualifier (buffer, &tfi);
break; break;
default: default:
return 0; return 0;
} }
}
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment