-/* $OpenBSD: lr0.c,v 1.15 2014/01/08 22:36:37 millert Exp $ */
+/* $OpenBSD: lr0.c,v 1.16 2014/01/13 23:14:17 millert Exp $ */
/* $NetBSD: lr0.c,v 1.4 1996/03/19 03:21:35 jtc Exp $ */
/*
shifts *first_shift;
reductions *first_reduction;
-int get_state(int);
+short get_state(int);
core *new_state(int);
void allocate_itemsets(void);
-int
+short
get_state(int symbol)
{
int key;
-/* $OpenBSD: mkpar.c,v 1.16 2014/01/08 21:40:25 millert Exp $ */
+/* $OpenBSD: mkpar.c,v 1.17 2014/01/13 23:14:18 millert Exp $ */
/* $NetBSD: mkpar.c,v 1.4 1996/03/19 03:21:39 jtc Exp $ */
/*
extern action *add_reductions();
extern action *add_reduce();
-int sole_reduction(int);
+short sole_reduction(int);
void free_action_row(action *);
void find_final_state(void);
}
-int
+short
sole_reduction(int stateno)
{
- int count, ruleno;
+ int count;
+ short ruleno;
action *p;
count = 0;