/[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.21 by akim, Wed Dec 5 09:19:27 2001 UTC revision 1.22.2.22 by akim, Wed Dec 5 09:19:41 2001 UTC
# Line 502  print_reductions (FILE *out, int state) Line 502  print_reductions (FILE *out, int state)
502  {  {
503    int i;    int i;
504    int j;    int j;
   int rule;  
505    int symbol;    int symbol;
506    unsigned mask;    unsigned mask;
507    int m;    int m;
# Line 541  print_reductions (FILE *out, int state) Line 540  print_reductions (FILE *out, int state)
540          {          {
541            if (!errp->errs[i])            if (!errp->errs[i])
542              continue;              continue;
543            symbol = errp->errs[i];            SETBIT (shiftset, errp->errs[i]);
           SETBIT (shiftset, symbol);  
544          }          }
545      }      }
546    
# Line 650  print_reductions (FILE *out, int state) Line 648  print_reductions (FILE *out, int state)
648                    if (count == 0)                    if (count == 0)
649                      {                      {
650                        if (j != default_LA)                        if (j != default_LA)
651                          {                          fprintf (out,
652                            rule = LAruleno[j];                                   _("    %-4s\treduce using rule %d (%s)\n"),
653                            fprintf (out,                                   tags[i],
654                                     _("    %-4s\treduce using rule %d (%s)\n"),                                   LAruleno[j],
655                                     tags[i], rule, tags[rule_table[rule].lhs]);                                   tags[rule_table[LAruleno[j]].lhs]);
                         }  
656                        else                        else
657                          defaulted = 1;                          defaulted = 1;
658    
# Line 664  print_reductions (FILE *out, int state) Line 661  print_reductions (FILE *out, int state)
661                    else                    else
662                      {                      {
663                        if (defaulted)                        if (defaulted)
664                          {                          fprintf (out,
665                            rule = LAruleno[default_LA];                                   _("    %-4s\treduce using rule %d (%s)\n"),
666                            fprintf (out,                                   tags[i],
667                                     _("    %-4s\treduce using rule %d (%s)\n"),                                   LAruleno[default_LA],
668                                     tags[i], rule, tags[rule_table[rule].lhs]);                                   tags[rule_table[LAruleno[default_LA]].lhs]);
669                            defaulted = 0;                        defaulted = 0;
                         }  
                       rule = LAruleno[j];  
670                        fprintf (out,                        fprintf (out,
671                                 _("    %-4s\t[reduce using rule %d (%s)]\n"),                                 _("    %-4s\t[reduce using rule %d (%s)]\n"),
672                                 tags[i], rule, tags[rule_table[rule].lhs]);                                 tags[i],
673                                   LAruleno[j],
674                                   tags[rule_table[LAruleno[j]].lhs]);
675                      }                      }
676                  }                  }
677    

Legend:
Removed from v.1.22.2.21  
changed lines
  Added in v.1.22.2.22

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