diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2003-06-19 16:34:54 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2003-06-19 16:34:54 +0000 |
commit | d8a20954432bfead92ebfd69e16dc0fc365af6ed (patch) | |
tree | 4cb374af17c9703b7d645bf435d969d078559085 /usr.bin/yacc/mkpar.c | |
parent | 21a7e092a6248e384b9d2fa5dc683527fafc6a2f (diff) |
ansify; ok miod
Diffstat (limited to 'usr.bin/yacc/mkpar.c')
-rw-r--r-- | usr.bin/yacc/mkpar.c | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/usr.bin/yacc/mkpar.c b/usr.bin/yacc/mkpar.c index 56a903bfbc1..9bfaab62cfa 100644 --- a/usr.bin/yacc/mkpar.c +++ b/usr.bin/yacc/mkpar.c @@ -1,5 +1,4 @@ -/* $OpenBSD: mkpar.c,v 1.10 2003/06/03 02:56:24 millert Exp $ */ - +/* $OpenBSD: mkpar.c,v 1.11 2003/06/19 16:34:53 pvalchev Exp $ */ /* $NetBSD: mkpar.c,v 1.4 1996/03/19 03:21:39 jtc Exp $ */ /* @@ -74,7 +73,7 @@ void defreds(void); void -make_parser() +make_parser(void) { int i; @@ -91,8 +90,7 @@ make_parser() action * -parse_actions(stateno) -int stateno; +parse_actions(int stateno) { action *actions; @@ -103,8 +101,7 @@ int stateno; action * -get_shifts(stateno) -int stateno; +get_shifts(int stateno) { action *actions, *temp; shifts *sp; @@ -138,9 +135,7 @@ int stateno; } action * -add_reductions(stateno, actions) -int stateno; -action *actions; +add_reductions(int stateno, action *actions) { int i, j, m, n; int ruleno, tokensetsize; @@ -164,9 +159,7 @@ action *actions; action * -add_reduce(actions, ruleno, symbol) -action *actions; -int ruleno, symbol; +add_reduce(action *actions, int ruleno, int symbol) { action *temp, *prev, *next; @@ -205,7 +198,7 @@ int ruleno, symbol; void -find_final_state() +find_final_state(void) { int goal, i; short *to_state; @@ -223,7 +216,7 @@ find_final_state() void -unused_rules() +unused_rules(void) { int i; action *p; @@ -258,7 +251,7 @@ unused_rules() void -remove_conflicts() +remove_conflicts(void) { int i; int symbol; @@ -334,7 +327,7 @@ remove_conflicts() void -total_conflicts() +total_conflicts(void) { /* Warn if s/r != expect or if any r/r */ if ((SRtotal != SRexpect) || RRtotal) @@ -357,8 +350,7 @@ total_conflicts() int -sole_reduction(stateno) -int stateno; +sole_reduction(int stateno) { int count, ruleno; action *p; @@ -386,7 +378,7 @@ int stateno; void -defreds() +defreds(void) { int i; @@ -396,8 +388,7 @@ defreds() } void -free_action_row(p) -action *p; +free_action_row(action *p) { action *q; @@ -410,7 +401,7 @@ action *p; } void -free_parser() +free_parser(void) { int i; |