mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* src/print-xml.c (escape_bufs): New static global variable
replacing... (xml_escape_n): ... the static local variable buf here. (print_xml): Free memory for escape_bufs. * src/reduce.c (reduce_xml): XML-escape terminal symbol tags.
This commit is contained in:
@@ -418,7 +418,7 @@ reduce_xml (FILE *out, int level)
|
||||
b = true;
|
||||
xml_printf (out, level + 3,
|
||||
"<terminal>%s</terminal>",
|
||||
symbols[i]->tag);
|
||||
xml_escape (symbols[i]->tag));
|
||||
}
|
||||
if (b)
|
||||
xml_puts (out, level + 2, "</terminals>");
|
||||
|
||||
Reference in New Issue
Block a user