]> git.saurik.com Git - bison.git/blobdiff - src/derives.c
* data/lalr1.cc: Use temporary variables instead of casts to
[bison.git] / src / derives.c
index b41751c39a9e1811e4164199979f159b4cf13e04..7e20fe5a29f0d7153c7b67c4b2205be143955a31 100644 (file)
@@ -1,6 +1,6 @@
 /* Match rules with nonterminals for bison,
 
 /* Match rules with nonterminals for bison,
 
-   Copyright (C) 1984, 1989, 2000, 2001, 2002 Free Software
+   Copyright (C) 1984, 1989, 2000, 2001, 2002, 2003 Free Software
    Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
    Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
@@ -65,7 +65,7 @@ void
 derives_compute (void)
 {
   symbol_number i;
 derives_compute (void)
 {
   symbol_number i;
-  int r;
+  rule_number r;
   rule **q;
 
   /* DSET[NTERM - NTOKENS] -- A linked list of the numbers of the rules
   rule **q;
 
   /* DSET[NTERM - NTOKENS] -- A linked list of the numbers of the rules
@@ -116,6 +116,6 @@ derives_compute (void)
 void
 derives_free (void)
 {
 void
 derives_free (void)
 {
-  free (derives[0]);
-  free (derives);
+  XFREE (derives[0]);
+  XFREE (derives);
 }
 }