X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/620b5727730997767040a023463ce952a0d15ee9..3b1977eab5b3ad1dd97c225518d694b3ec43a151:/src/print-xml.c?ds=sidebyside
diff --git a/src/print-xml.c b/src/print-xml.c
index 72e61a84..2a37ebd9 100644
--- a/src/print-xml.c
+++ b/src/print-xml.c
@@ -1,6 +1,6 @@
 /* Print an xml on generated parser, for Bison,
 
-   Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
 
@@ -48,7 +48,7 @@ struct escape_buf
   char *ptr;
   size_t size;
 };
-static struct escape_buf escape_bufs[2];
+static struct escape_buf escape_bufs[3];
 
 
 /*--------------------------------.
@@ -248,10 +248,11 @@ print_reductions (FILE *out, int level, state *s)
   int report = false;
   int i, j;
 
-  if (reds->num == 0) {
-    xml_puts (out, level, "");
-    return;
-  }
+  if (reds->num == 0)
+    {
+      xml_puts (out, level, "");
+      return;
+    }
 
   if (yydefact[s->number] != 0)
     default_reduction = &rules[yydefact[s->number] - 1];
@@ -504,8 +505,12 @@ print_xml (void)
   FILE *out = xfopen (spec_xml_file, "w");
 
   fputs ("\n\n", out);
-  xml_printf (out, level, "",
-	      xml_escape (VERSION));
+  xml_printf (out, level,
+              "",
+              xml_escape_n (0, VERSION),
+              xml_escape_n (1, PACKAGE_BUGREPORT),
+              xml_escape_n (2, PACKAGE_URL));
 
   fputc ('\n', out);
   xml_printf (out, level + 1, "%s",