mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* src/output.h, src/output.c (get_lines_number): Remove.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2002-04-22 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/output.h, src/output.c (get_lines_number): Remove.
|
||||
|
||||
2002-04-19 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* doc/bison.texinfo (Actions): Make clear that `|' is not the same
|
||||
|
||||
14
src/output.c
14
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 |
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user