From 1fa140687eb4ae093904366f4cb1563bbb47e63a Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 22 Dec 2001 15:16:41 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ THANKS | 1 + src/output.c | 12 ++++++------ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2950ad52..be937d51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-12-22 Akim Demaille + + * 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 Some actions of web2c.y are improperly triggered. diff --git a/THANKS b/THANKS index 3bf90c06..de3c83ac 100644 --- a/THANKS +++ b/THANKS @@ -32,6 +32,7 @@ Robert Anisko anisko_r@epita.fr Shura debil_urod@ngs.ru Tom Lane tgl@sss.pgh.pa.us Tom Tromey tromey@cygnus.com +Wayne Green wayne@infosavvy.com Wolfram Wagner ww@mpi-sb.mpg.de Wwp subscript@free.fr diff --git a/src/output.c b/src/output.c index 7e7b3538..afb9881d 100644 --- a/src/output.c +++ b/src/output.c @@ -130,14 +130,14 @@ static size_t get_lines_number (const char *s) { size_t lines = 0; - + size_t i; for (i = 0; s[i]; ++i) { if (s[i] == '\n') ++lines; - } - + } + return lines; } @@ -148,8 +148,8 @@ static inline void output_table_data (struct obstack *oout, short *table_data, short first, - short begin, - short end) + int begin, + int end) { int i; int j = 1; @@ -941,7 +941,7 @@ output_parser (const char *skel_filename, FILE *out) { fputs (muscle_value, out); output_line += get_lines_number (muscle_value); - } + } else { fputs ("%%", out); -- 2.49.0