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 "gram.h"
#include "machine.h"
#include "alloc.h"
+#include "complain.h"
extern char **tags; /* reader.c */
nuseful_nonterminals, nuseless_nonterminals;
-bool bits_equal PARAMS((BSet, BSet, int));
-int nbits PARAMS((unsigned));
-int bits_size PARAMS((BSet, int));
-void reduce_grammar PARAMS((void));
+extern void reduce_grammar PARAMS((void));
+static bool bits_equal PARAMS((BSet, BSet, int));
+static int nbits PARAMS((unsigned));
+static int bits_size PARAMS((BSet, int));
static void useless_nonterminals PARAMS((void));
static void inaccessable_symbols PARAMS((void));
static void reduce_grammar_tables PARAMS((void));
static void print_results PARAMS((void));
static void print_notices PARAMS((void));
-void dump_grammar PARAMS((void));
-extern void fatals PARAMS((char *, char *));
+#if 0 /* XXX currently unused. */
+static void dump_grammar PARAMS((void));
+#endif
+
\f
-bool
+static bool
bits_equal (BSet L, BSet R, int n)
{
int i;
}
-int
+static int
nbits (unsigned i)
{
int count = 0;
}
-int
+static int
bits_size (BSet S, int n)
{
int i, count = 0;
print_notices();
if (!BITISSET(N, start_symbol - ntokens))
- fatals(_("Start symbol %s does not derive any sentence"),
+ fatal (_("Start symbol %s does not derive any sentence"),
tags[start_symbol]);
reduce_grammar_tables();
- /* if (verboseflag) {
- fprintf(foutput, "REDUCED GRAMMAR\n\n");
- dump_grammar();
- }
- */
-
+#if 0
+ if (verboseflag)
+ {
+ fprintf(foutput, "REDUCED GRAMMAR\n\n");
+ dump_grammar();
+ }
+#endif
/**/ statisticsflag = FALSE; /* someday getopts should handle this */
if (statisticsflag == TRUE)
fprintf(stderr,
fprintf(foutput, "\n\n");
}
\f
-void
+#if 0 /* XXX currently unused. */
+static void
dump_grammar (void)
{
int i;
}
fprintf(foutput, "\n\n");
}
+#endif
static void