pkgsrc/devel/ruby-byaccr/patches/patch-ae

38 lines
836 B
Text

$NetBSD: patch-ae,v 1.2 2005/06/19 20:44:06 minskim Exp $
--- mkpar.c.orig 2000-11-01 08:03:49.000000000 -0600
+++ mkpar.c
@@ -1,5 +1,4 @@
#include <stdio.h>
-#include <malloc.h>
#include "defs.h"
@@ -16,12 +15,6 @@ short final_state;
static int SRcount;
static int RRcount;
-extern action *parse_actions();
-extern action *get_shifts();
-extern action *add_reductions();
-extern action *add_reduce();
-
-
void make_parser(void)
{
int i;
@@ -174,11 +167,12 @@ action *p;
for (i = 3; i < nrules; ++i)
if (!rules_used[i]) ++nunused;
- if (nunused)
+ if (nunused) {
if (nunused == 1)
fprintf(stderr, "%s: 1 rule never reduced\n", myname);
else
- fprintf(stderr, "%s: %d rules never reduced\n", myname, nunused);
+ fprintf(stderr, "%s: %d rules never reduced\n", myname, nunused);
+ }
}