mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/output.c (output_table_data): Change the prototype to use
`int' for array ranges: some invocations do pass an int, not a short. Reported by Wayne Green.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2001-12-22 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/output.c (output_table_data): Change the prototype to use
|
||||||
|
`int' for array ranges: some invocations do pass an int, not a
|
||||||
|
short.
|
||||||
|
Reported by Wayne Green.
|
||||||
|
|
||||||
2001-12-22 Akim Demaille <akim@epita.fr>
|
2001-12-22 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Some actions of web2c.y are improperly triggered.
|
Some actions of web2c.y are improperly triggered.
|
||||||
|
|||||||
1
THANKS
1
THANKS
@@ -32,6 +32,7 @@ Robert Anisko anisko_r@epita.fr
|
|||||||
Shura debil_urod@ngs.ru
|
Shura debil_urod@ngs.ru
|
||||||
Tom Lane tgl@sss.pgh.pa.us
|
Tom Lane tgl@sss.pgh.pa.us
|
||||||
Tom Tromey tromey@cygnus.com
|
Tom Tromey tromey@cygnus.com
|
||||||
|
Wayne Green wayne@infosavvy.com
|
||||||
Wolfram Wagner ww@mpi-sb.mpg.de
|
Wolfram Wagner ww@mpi-sb.mpg.de
|
||||||
Wwp subscript@free.fr
|
Wwp subscript@free.fr
|
||||||
|
|
||||||
|
|||||||
12
src/output.c
12
src/output.c
@@ -130,14 +130,14 @@ static size_t
|
|||||||
get_lines_number (const char *s)
|
get_lines_number (const char *s)
|
||||||
{
|
{
|
||||||
size_t lines = 0;
|
size_t lines = 0;
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; s[i]; ++i)
|
for (i = 0; s[i]; ++i)
|
||||||
{
|
{
|
||||||
if (s[i] == '\n')
|
if (s[i] == '\n')
|
||||||
++lines;
|
++lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
return lines;
|
return lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,8 +148,8 @@ static inline void
|
|||||||
output_table_data (struct obstack *oout,
|
output_table_data (struct obstack *oout,
|
||||||
short *table_data,
|
short *table_data,
|
||||||
short first,
|
short first,
|
||||||
short begin,
|
int begin,
|
||||||
short end)
|
int end)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int j = 1;
|
int j = 1;
|
||||||
@@ -941,7 +941,7 @@ output_parser (const char *skel_filename, FILE *out)
|
|||||||
{
|
{
|
||||||
fputs (muscle_value, out);
|
fputs (muscle_value, out);
|
||||||
output_line += get_lines_number (muscle_value);
|
output_line += get_lines_number (muscle_value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fputs ("%%", out);
|
fputs ("%%", out);
|
||||||
|
|||||||
Reference in New Issue
Block a user