ptree.c (cxx_print_identifier): Print a leading space if the indent level is 0.
authorIan Lance Taylor <ian@airs.com>
Tue, 26 Jul 2005 02:38:20 +0000 (02:38 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 26 Jul 2005 02:38:20 +0000 (02:38 +0000)
* ptree.c (cxx_print_identifier): Print a leading space if the
indent level is 0.

From-SVN: r102378

gcc/cp/ChangeLog
gcc/cp/ptree.c

index 003fbab4ee3f71cdcfc3b8d0fa9ded2008c2f7cc..a9c8dd03e911313a105f87b1a56e48c3b6ba05b6 100644 (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
index 9ee2ae35be670883d7afd840f62afd371905cb2c..75263735c89c5931c6d87829aff06b56bcb761ad 100644 (file)
@@ -149,9 +149,15 @@ cxx_print_binding (FILE *stream, cxx_binding *binding, const char *prefix)
 void
 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");
-  indent_to (file, indent);
+  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);
   print_node (file, "template", IDENTIFIER_TEMPLATE (node), indent + 4);