From: Akim Demaille Date: Mon, 22 Apr 2002 08:21:19 +0000 (+0000) Subject: * src/output.h, src/output.c (get_lines_number): Remove. X-Git-Tag: BISON-1_49a~30 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/4f940944da24080103bdbcf9a61fbb222066d8db * src/output.h, src/output.c (get_lines_number): Remove. --- diff --git a/ChangeLog b/ChangeLog index 140fc49a..8238e3ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-04-22 Akim Demaille + + * src/output.h, src/output.c (get_lines_number): Remove. + 2002-04-19 Akim Demaille * doc/bison.texinfo (Actions): Make clear that `|' is not the same diff --git a/src/output.c b/src/output.c index 035d0ad8..28a7992e 100644 --- a/src/output.c +++ b/src/output.c @@ -132,20 +132,6 @@ static struct obstack format_obstack; int error_verbose = 0; -/* Returns the number of lines of S. */ -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; -} - /*----------------------------------------------------------------. | Format the FIRST and then TABLE_DATA[BEGIN..END[ into OOUT, and | diff --git a/src/output.h b/src/output.h index 306a63e4..5b294fc9 100644 --- a/src/output.h +++ b/src/output.h @@ -1,5 +1,5 @@ /* Output the generated parsing program for bison, - Copyright 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -26,8 +26,6 @@ extern int error_verbose; /* Output the parsing tables and the parser code to FTABLE. */ void output PARAMS ((void)); -size_t get_lines_number PARAMS ((const char *s)); - void actions_output PARAMS ((FILE *out)); void guards_output PARAMS ((FILE *out)); void token_definitions_output PARAMS ((FILE *out));