]> git.saurik.com Git - bison.git/blobdiff - src/LR0.c
* src/bison.simple: Remove YYERROR_VERBOSE using.
[bison.git] / src / LR0.c
index 8d424eabeca94acb3db9b9e32a0a77ff0fd2f654..06ee51f6d3940e8cae26c63132a902306d60ecd2 100644 (file)
--- a/src/LR0.c
+++ b/src/LR0.c
@@ -50,7 +50,7 @@ static short *redset = NULL;
 static short *shiftset = NULL;
 
 static short **kernel_base = NULL;
 static short *shiftset = NULL;
 
 static short **kernel_base = NULL;
-static size_t *kernel_size = NULL;
+static int *kernel_size = NULL;
 static short *kernel_items = NULL;
 
 /* hash table for states, to recognize equivalent ones.  */
 static short *kernel_items = NULL;
 
 /* hash table for states, to recognize equivalent ones.  */
@@ -94,7 +94,7 @@ allocate_itemsets (void)
     }
 
   shift_symbol = symbol_count;
     }
 
   shift_symbol = symbol_count;
-  kernel_size = XCALLOC (size_t, nsyms);
+  kernel_size = XCALLOC (int, nsyms);
 }
 
 
 }
 
 
@@ -213,7 +213,6 @@ static int
 get_state (int symbol)
 {
   int key;
 get_state (int symbol)
 {
   int key;
-  short *isp2;
   int i;
   core *sp;
 
   int i;
   core *sp;
 
@@ -236,7 +235,6 @@ get_state (int symbol)
        {
          if (sp->nitems == kernel_size[symbol])
            {
        {
          if (sp->nitems == kernel_size[symbol])
            {
-             int i;
              found = 1;
              for (i = 0; i < kernel_size[symbol]; ++i)
                if (kernel_base[symbol][i] != sp->items[i])
              found = 1;
              for (i = 0; i < kernel_size[symbol]; ++i)
                if (kernel_base[symbol][i] != sp->items[i])