X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/110ef36a1a93c60cc83627492de40cb95aedf9b1..39f5757a95b687b334165c129ec3c95ce5fec8b5:/src/print-xml.c
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",