/[bison]/bison/data/lalr1.cc
ViewVC logotype

Diff of /bison/data/lalr1.cc

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

revision 1.27 by akim, Thu Feb 20 14:42:43 2003 UTC revision 1.28 by akim, Fri Feb 21 08:13:37 2003 UTC
# Line 432  yy::]b4_parser_class_name[::parse () Line 432  yy::]b4_parser_class_name[::parse ()
432        // Short files will use "unsigned char" for line numbers,        // Short files will use "unsigned char" for line numbers,
433        // in which case they will be output as character litterals        // in which case they will be output as character litterals
434        // by "<<".        // by "<<".
435          unsigned yylineno = rline_[n_];
436        YYCDEBUG << "Reducing via rule " << n_ - 1        YYCDEBUG << "Reducing via rule " << n_ - 1
437                 << " (line " << static_cast <unsigned> (rline_[n_]) << "), ";                 << " (line " << yylineno << "), ";
438        for (]b4_int_type_for([b4_prhs])[ i = prhs_[n_];        for (]b4_int_type_for([b4_prhs])[ i = prhs_[n_];
439             0 <= rhs_[i]; ++i)             0 <= rhs_[i]; ++i)
440          YYCDEBUG << name_[rhs_[i]] << ' ';          YYCDEBUG << name_[rhs_[i]] << ' ';
# Line 923  namespace yy Line 924  namespace yy
924      /** \brief (column related) Advance to the COLUMNS next columns. */      /** \brief (column related) Advance to the COLUMNS next columns. */
925      inline void columns (int columns = 1)      inline void columns (int columns = 1)
926      {      {
927        if (int (initial_column) < columns + int (column))        int leftmost = initial_column;
928          int current  = column;
929          if (leftmost <= current + columns)
930          column += columns;          column += columns;
931        else        else
932          column = initial_column;          column = initial_column;

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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