Commit dd4f41c3 by Ian Lance Taylor Committed by Ian Lance Taylor

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
parent 9bbf1357
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> 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* call.c (convert_for_arg_passing): Check function pointers when * call.c (convert_for_arg_passing): Check function pointers when
......
...@@ -149,9 +149,15 @@ cxx_print_binding (FILE *stream, cxx_binding *binding, const char *prefix) ...@@ -149,9 +149,15 @@ cxx_print_binding (FILE *stream, cxx_binding *binding, const char *prefix)
void void
cxx_print_identifier (FILE *file, tree node, int indent) cxx_print_identifier (FILE *file, tree node, int indent)
{ {
indent_to (file, indent); if (indent == 0)
fprintf (file, " ");
else
indent_to (file, indent);
cxx_print_binding (file, IDENTIFIER_NAMESPACE_BINDINGS (node), "bindings"); cxx_print_binding (file, IDENTIFIER_NAMESPACE_BINDINGS (node), "bindings");
indent_to (file, indent); if (indent == 0)
fprintf (file, " ");
else
indent_to (file, indent);
cxx_print_binding (file, IDENTIFIER_BINDING (node), "local bindings"); cxx_print_binding (file, IDENTIFIER_BINDING (node), "local bindings");
print_node (file, "label", IDENTIFIER_LABEL_VALUE (node), indent + 4); print_node (file, "label", IDENTIFIER_LABEL_VALUE (node), indent + 4);
print_node (file, "template", IDENTIFIER_TEMPLATE (node), indent + 4); print_node (file, "template", IDENTIFIER_TEMPLATE (node), indent + 4);
......
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