summaryrefslogtreecommitdiff
path: root/devel/ruby-byaccr/patches/patch-ae
blob: f2974af47566ffcf8247966913d308399e709e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$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);
+    }
 }