]> git.saurik.com Git - bison.git/commitdiff
* src/lalr.c (build_relations): Rename `states' as `states1'.
authorAkim Demaille <akim@epita.fr>
Sat, 29 Dec 2001 14:20:27 +0000 (14:20 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 29 Dec 2001 14:20:27 +0000 (14:20 +0000)
Sorry, I don't understand exactly what it is, no better name...

ChangeLog
src/lalr.c

index 0150abe0edf805df51ac3d094cdbba3d508b3b7e..6583dc55f61323a81c661bc238a0983cb040a8a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-29  Akim Demaille  <akim@epita.fr>
+
+       * src/lalr.c (build_relations): Rename `states' as `states1'.
+       Sorry, I don't understand exactly what it is, no better name...
+
+       
 2001-12-29  Akim Demaille  <akim@epita.fr>
 
        * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
 2001-12-29  Akim Demaille  <akim@epita.fr>
 
        * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
index 55986f33127e03c95b97b4ecfd79e60e1a8587a1..f0b0d3bea1599f9a5a942c14cafc675e89fbb386 100644 (file)
@@ -401,7 +401,7 @@ static void
 build_relations (void)
 {
   short *edge = XCALLOC (short, ngotos + 1);
 build_relations (void)
 {
   short *edge = XCALLOC (short, ngotos + 1);
-  short *states = XCALLOC (short, ritem_longest_rhs () + 1);
+  short *states1 = XCALLOC (short, ritem_longest_rhs () + 1);
   int i;
 
   includes = XCALLOC (short *, ngotos);
   int i;
 
   includes = XCALLOC (short *, ngotos);
@@ -418,7 +418,7 @@ build_relations (void)
          int length = 1;
          short *rp;
          state_t *state = state_table[from_state[i]];
          int length = 1;
          short *rp;
          state_t *state = state_table[from_state[i]];
-         states[0] = state->number;
+         states1[0] = state->number;
 
          for (rp = &ritem[rules[*rulep].rhs]; *rp >= 0; rp++)
            {
 
          for (rp = &ritem[rules[*rulep].rhs]; *rp >= 0; rp++)
            {
@@ -431,7 +431,7 @@ build_relations (void)
                    break;
                }
 
                    break;
                }
 
-             states[length++] = state->number;
+             states1[length++] = state->number;
            }
 
          if (!state->consistent)
            }
 
          if (!state->consistent)
@@ -446,7 +446,7 @@ build_relations (void)
              /* JF added rp>=ritem &&   I hope to god its right! */
              if (rp >= ritem && ISVAR (*rp))
                {
              /* JF added rp>=ritem &&   I hope to god its right! */
              if (rp >= ritem && ISVAR (*rp))
                {
-                 edge[nedges++] = map_goto (states[--length], *rp);
+                 edge[nedges++] = map_goto (states1[--length], *rp);
                  if (nullable[*rp])
                    done = 0;
                }
                  if (nullable[*rp])
                    done = 0;
                }
@@ -464,7 +464,7 @@ build_relations (void)
     }
 
   XFREE (edge);
     }
 
   XFREE (edge);
-  XFREE (states);
+  XFREE (states1);
 
   includes = transpose (includes, ngotos);
 }
 
   includes = transpose (includes, ngotos);
 }