diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
commit | b6ea75cfc9712b77a0886c4348d6fb519641e40e (patch) | |
tree | 65f68bb2db7c6118e80670cd5edc297159f43409 /zwgc/parser.y | |
parent | 71f70d3066d1c038e1794c4ffe804591eda3d1af (diff) |
de K&Rify, fix prototypes
Diffstat (limited to 'zwgc/parser.y')
-rw-r--r-- | zwgc/parser.y | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/zwgc/parser.y b/zwgc/parser.y index 6f53985..30f4088 100644 --- a/zwgc/parser.y +++ b/zwgc/parser.y @@ -31,7 +31,7 @@ static const char rcsid_parser_y[] = "$Id$"; #include "node.h" #include "zwgc.h" -static void yyerror(); +static void yyerror(char *); /* * the_program - local variable used to communicate the program's node @@ -320,9 +320,9 @@ static int error_occured = 0; * is reported to the user via stderr. */ -void report_parse_error(error_message, line_number) - char *error_message; - int line_number; +void +report_parse_error(char *error_message, + int line_number) { if (error_occured) return; @@ -338,8 +338,7 @@ void report_parse_error(error_message, line_number) * stack overflow errors. */ -static void yyerror(message) - char *message; +static void yyerror(char *message) { report_parse_error(message, yylineno); } @@ -360,8 +359,8 @@ static void yyerror(message) * is closed before this routine returns. */ -struct _Node *parse_file(input_file) - FILE *input_file; +struct _Node * +parse_file(FILE *input_file) { the_program = NULL; error_occured = 0; |