From: Joel E. Denny Date: Fri, 30 Apr 2010 23:50:52 +0000 (-0400) Subject: tests: fix maintainer-xml-check. X-Git-Tag: v2.7.90~688 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/bc81de36b7ef78ff280e14a173e5cc5d5a3191eb tests: fix maintainer-xml-check. * data/xslt/xml2dot.xsl (xsl:template match="bison-xml-report"): Update output to include comments now produced by --graph. (xsl:template match="automaton"): As for --graph, name the digraph after the grammar file. * src/print-xml.c (escape_bufs): Enlarge array. (print_xml): Add bug-report and url attributes to bison-xml-report element. --- diff --git a/ChangeLog b/ChangeLog index 49040852..fcc59755 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2010-05-01 Joel E. Denny + + tests: fix maintainer-xml-check. + * data/xslt/xml2dot.xsl (xsl:template match="bison-xml-report"): + Update output to include comments now produced by --graph. + (xsl:template match="automaton"): As for --graph, name the + digraph after the grammar file. + * src/print-xml.c (escape_bufs): Enlarge array. + (print_xml): Add bug-report and url attributes to + bison-xml-report element. + 2010-05-01 Joel E. Denny In DOT output, convert from "/*" comments to "//" comments. diff --git a/data/xslt/xml2dot.xsl b/data/xslt/xml2dot.xsl index 887a9917..836bb1b6 100644 --- a/data/xslt/xml2dot.xsl +++ b/data/xslt/xml2dot.xsl @@ -35,11 +35,27 @@ - + // Generated by GNU Bison + + . + // Report bugs to < + + >. + // Home page: < + + >. + + + - digraph Automaton { + + digraph " + + + + " { } diff --git a/src/print-xml.c b/src/print-xml.c index 0d68171b..b23de387 100644 --- a/src/print-xml.c +++ b/src/print-xml.c @@ -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]; /*--------------------------------. @@ -505,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",