ptree.c (cxx_print_identifier): Print a leading space if the indent level is 0.

* ptree.c (cxx_print_identifier): Print a leading space if the
	indent level is 0.

From-SVN: r102378
This commit is contained in:
Ian Lance Taylor 2005-07-26 02:38:20 +00:00 committed by Ian Lance Taylor
parent 9bbf1357c8
commit dd4f41c377
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-07-25 Ian Lance Taylor <ian@airs.com>
* ptree.c (cxx_print_identifier): Print a leading space if the
indent level is 0.
2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* call.c (convert_for_arg_passing): Check function pointers when

View File

@ -149,8 +149,14 @@ cxx_print_binding (FILE *stream, cxx_binding *binding, const char *prefix)
void
cxx_print_identifier (FILE *file, tree node, int indent)
{
if (indent == 0)
fprintf (file, " ");
else
indent_to (file, indent);
cxx_print_binding (file, IDENTIFIER_NAMESPACE_BINDINGS (node), "bindings");
if (indent == 0)
fprintf (file, " ");
else
indent_to (file, indent);
cxx_print_binding (file, IDENTIFIER_BINDING (node), "local bindings");
print_node (file, "label", IDENTIFIER_LABEL_VALUE (node), indent + 4);