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

Diff of /bison/src/print.c

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

revision 1.83 by akim, Sun Jun 30 17:34:52 2002 UTC revision 1.84 by akim, Wed Jul 3 06:51:43 2002 UTC
# Line 125  print_core (FILE *out, state_t *state) Line 125  print_core (FILE *out, state_t *state)
125  static void  static void
126  print_transitions (state_t *state, FILE *out, bool display_transitions_p)  print_transitions (state_t *state, FILE *out, bool display_transitions_p)
127  {  {
128    transitions_t *transitions = state->shifts;    transitions_t *transitions = state->transitions;
129    size_t width = 0;    size_t width = 0;
130    int i;    int i;
131    
# Line 224  state_default_rule (state_t *state) Line 224  state_default_rule (state_t *state)
224       we shift (S/R conflicts)...  */       we shift (S/R conflicts)...  */
225    bitset_zero (shiftset);    bitset_zero (shiftset);
226    {    {
227      transitions_t *transitions = state->shifts;      transitions_t *transitions = state->transitions;
228      for (i = 0; i < transitions->num && TRANSITION_IS_SHIFT (transitions, i); i++)      for (i = 0; i < transitions->num && TRANSITION_IS_SHIFT (transitions, i); i++)
229        if (!TRANSITION_IS_DISABLED (transitions, i))        if (!TRANSITION_IS_DISABLED (transitions, i))
230          {          {
# Line 302  print_reduction (FILE *out, size_t width Line 302  print_reduction (FILE *out, size_t width
302  static void  static void
303  print_reductions (FILE *out, state_t *state)  print_reductions (FILE *out, state_t *state)
304  {  {
305    transitions_t *transitions = state->shifts;    transitions_t *transitions = state->transitions;
306    reductions_t *redp = state->reductions;    reductions_t *redp = state->reductions;
307    rule_t *default_rule = NULL;    rule_t *default_rule = NULL;
308    size_t width = 0;    size_t width = 0;
# Line 396  static void Line 396  static void
396  print_actions (FILE *out, state_t *state)  print_actions (FILE *out, state_t *state)
397  {  {
398    reductions_t *redp = state->reductions;    reductions_t *redp = state->reductions;
399    transitions_t *transitions = state->shifts;    transitions_t *transitions = state->transitions;
400    
401    if (transitions->num == 0 && redp->num == 0)    if (transitions->num == 0 && redp->num == 0)
402      {      {

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

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