mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/conflicts.c (log_resolution): Fix indenting bugs I introduced.
Problem reported by Wojciech Polak. * src/print-xml.c (xml_puts): Work even if LEVEL exceeds INT_MAX/2. (xml_printf): Undo change I made on 21 September; that is, indent 2 spaces, not 1.
This commit is contained in:
@@ -145,7 +145,7 @@ log_resolution (rule *r, symbol_number token,
|
||||
case shift_resolution:
|
||||
case right_resolution:
|
||||
obstack_fgrow2 (&solved_conflicts_xml_obstack,
|
||||
"<resolution rule=\"%d\" symbol=\"%s\""
|
||||
" <resolution rule=\"%d\" symbol=\"%s\""
|
||||
" type=\"shift\">",
|
||||
r->number,
|
||||
xml_escape (symbols[token]->tag));
|
||||
@@ -154,7 +154,7 @@ log_resolution (rule *r, symbol_number token,
|
||||
case reduce_resolution:
|
||||
case left_resolution:
|
||||
obstack_fgrow2 (&solved_conflicts_xml_obstack,
|
||||
"<resolution rule=\"%d\" symbol=\"%s\""
|
||||
" <resolution rule=\"%d\" symbol=\"%s\""
|
||||
" type=\"reduce\">",
|
||||
r->number,
|
||||
xml_escape (symbols[token]->tag));
|
||||
@@ -162,7 +162,7 @@ log_resolution (rule *r, symbol_number token,
|
||||
|
||||
case nonassoc_resolution:
|
||||
obstack_fgrow2 (&solved_conflicts_xml_obstack,
|
||||
"<resolution rule=\"%d\" symbol=\"%s\""
|
||||
" <resolution rule=\"%d\" symbol=\"%s\""
|
||||
" type=\"error\">",
|
||||
r->number,
|
||||
xml_escape (symbols[token]->tag));
|
||||
|
||||
Reference in New Issue
Block a user