mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +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:
@@ -1,3 +1,11 @@
|
|||||||
|
2007-09-23 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2007-09-23 Joel E. Denny <jdenny@ces.clemson.edu>
|
2007-09-23 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
Pacify ./configure --enable-gcc-warnings.
|
Pacify ./configure --enable-gcc-warnings.
|
||||||
|
|||||||
@@ -494,9 +494,8 @@ void
|
|||||||
xml_puts (FILE *out, int level, char const *s)
|
xml_puts (FILE *out, int level, char const *s)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
level *= 2;
|
|
||||||
for (i = 0; i < level; i++)
|
for (i = 0; i < level; i++)
|
||||||
fputc (' ', out);
|
fputs (" ", out);
|
||||||
fputs (s, out);
|
fputs (s, out);
|
||||||
fputc ('\n', out);
|
fputc ('\n', out);
|
||||||
}
|
}
|
||||||
@@ -508,7 +507,7 @@ xml_printf (FILE *out, int level, char const *fmt, ...)
|
|||||||
va_list arglist;
|
va_list arglist;
|
||||||
|
|
||||||
for (i = 0; i < level; i++)
|
for (i = 0; i < level; i++)
|
||||||
fputc (' ', out);
|
fputs (" ", out);
|
||||||
|
|
||||||
va_start (arglist, fmt);
|
va_start (arglist, fmt);
|
||||||
vfprintf (out, fmt, arglist);
|
vfprintf (out, fmt, arglist);
|
||||||
|
|||||||
Reference in New Issue
Block a user