bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06-fyi-formatting.patch


From: Akim Demaille
Subject: 06-fyi-formatting.patch
Date: Mon, 17 Dec 2001 18:21:01 +0100

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * src/conflicts.c (print_reductions): Formatting changes.
        
        
Index: src/conflicts.c
--- src/conflicts.c Sun, 16 Dec 2001 17:11:12 +0100 akim
+++ src/conflicts.c Sun, 16 Dec 2001 17:12:06 +0100 akim
@@ -414,16 +414,15 @@
 {
   int i;
   int j;
-  int m;
-  int n;
-  shifts *shiftp;
-  errs *errp;
+  int m = state_table[state]->lookaheads;
+  int n = state_table[state + 1]->lookaheads;
+  shifts *shiftp = state_table[state]->shifts;
+  errs *errp = state_table[state]->errs;
   int nodefault = 0;
 
   for (i = 0; i < tokensetsize; i++)
     shiftset[i] = 0;
 
-  shiftp = state_table[state]->shifts;
   for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
     if (!SHIFT_IS_DISABLED (shiftp, i))
       {
@@ -434,14 +433,10 @@
        SETBIT (shiftset, SHIFT_SYMBOL (shiftp, i));
       }
 
-  errp = state_table[state]->errs;
   if (errp)
     for (i = 0; i < errp->nerrs; i++)
       if (errp->errs[i])
        SETBIT (shiftset, errp->errs[i]);
-
-  m = state_table[state]->lookaheads;
-  n = state_table[state + 1]->lookaheads;
 
   if (n - m == 1 && !nodefault)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]