/[bison]/bison/src/conflicts.c
ViewVC logotype

Diff of /bison/src/conflicts.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22.2.30 by akim, Wed Dec 5 09:24:54 2001 UTC revision 1.22.2.31 by akim, Sat Dec 22 14:41:15 2001 UTC
# Line 414  void Line 414  void
414  print_reductions (FILE *out, int state)  print_reductions (FILE *out, int state)
415  {  {
416    int i;    int i;
   int j;  
417    int m;    int m;
418    int n;    int n;
419    shifts *shiftp;    shifts *shiftp;
# Line 463  print_reductions (FILE *out, int state) Line 462  print_reductions (FILE *out, int state)
462      }      }
463    else if (n - m >= 1)    else if (n - m >= 1)
464      {      {
       int k;  
   
465        int cmax = 0;        int cmax = 0;
466        int default_LA = -1;        int default_LA = -1;
467        int default_rule = 0;        int default_rule = 0;
# Line 473  print_reductions (FILE *out, int state) Line 470  print_reductions (FILE *out, int state)
470          for (i = m; i < n; i++)          for (i = m; i < n; i++)
471            {            {
472              int count = 0;              int count = 0;
473                int j, k;
474    
475              for (k = 0; k < tokensetsize; ++k)              for (k = 0; k < tokensetsize; ++k)
476                lookaheadset[k] = LA (i)[k] & ~shiftset[k];                lookaheadset[k] = LA (i)[k] & ~shiftset[k];
# Line 501  print_reductions (FILE *out, int state) Line 499  print_reductions (FILE *out, int state)
499    
500        for (i = 0; i < ntokens; i++)        for (i = 0; i < ntokens; i++)
501          {          {
502              int j;
503            int defaulted = 0;            int defaulted = 0;
504            int count = BITISSET (shiftset, i);            int count = BITISSET (shiftset, i);
505    
506            for (j = m; j < n; j++)            for (j = m; j < n; j++)
507              {              {
508                if (BITISSET (LA (m), j))                if (BITISSET (LA (j), i))
509                  {                  {
510                    if (count == 0)                    if (count == 0)
511                      {                      {

Legend:
Removed from v.1.22.2.30  
changed lines
  Added in v.1.22.2.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26