/[bison]/bison/src/output.c
ViewVC logotype

Diff of /bison/src/output.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.144 by akim, Tue Apr 9 19:19:59 2002 UTC revision 1.145 by akim, Mon Apr 22 08:21:19 2002 UTC
# Line 132  static struct obstack format_obstack; Line 132  static struct obstack format_obstack;
132    
133  int error_verbose = 0;  int error_verbose = 0;
134    
 /* 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;  
 }  
   
135    
136  /*----------------------------------------------------------------.  /*----------------------------------------------------------------.
137  | Format the FIRST and then TABLE_DATA[BEGIN..END[ into OOUT, and |  | Format the FIRST and then TABLE_DATA[BEGIN..END[ into OOUT, and |

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26