X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7612000cb004ae5b8516e3a34a79ab32050d688e..dad49092a95192053aa040827a9b70caa9563ed7:/src/print.c diff --git a/src/print.c b/src/print.c index f6817223..ecd5d926 100644 --- a/src/print.c +++ b/src/print.c @@ -15,7 +15,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Bison; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ #include @@ -39,18 +40,20 @@ extern char any_conflicts; extern char *conflicts; extern int final_state; -extern void conflict_log(); -extern void verbose_conflict_log(); -extern void print_reductions(); +extern void conflict_log PARAMS((void)); +extern void verbose_conflict_log PARAMS((void)); +extern void print_reductions PARAMS((int)); -void print_token(); -void print_state(); -void print_core(); -void print_actions(); -void print_grammar(); +void terse PARAMS((void)); +void verbose PARAMS((void)); +void print_token PARAMS((int, int)); +void print_state PARAMS((int)); +void print_core PARAMS((int)); +void print_actions PARAMS((int)); +void print_grammar PARAMS((void)); void -terse() +terse (void) { if (any_conflicts) { @@ -60,7 +63,7 @@ terse() void -verbose() +verbose (void) { register int i; @@ -77,16 +80,14 @@ verbose() void -print_token(extnum, token) -int extnum, token; +print_token (int extnum, int token) { fprintf(foutput, _(" type %d is %s\n"), extnum, tags[token]); } void -print_state(state) -int state; +print_state (int state) { fprintf(foutput, _("\n\nstate %d\n\n"), state); print_core(state); @@ -95,8 +96,7 @@ int state; void -print_core(state) -int state; +print_core (int state) { register int i; register int k; @@ -142,8 +142,7 @@ int state; void -print_actions(state) -int state; +print_actions (int state) { register int i; register int k; @@ -243,7 +242,7 @@ int state; else void -print_grammar() +print_grammar (void) { int i, j; short* rule;