]> git.saurik.com Git - bison.git/commitdiff
Merge remote-tracking branch 'origin/maint'
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 13 Nov 2012 09:59:55 +0000 (10:59 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 13 Nov 2012 09:59:55 +0000 (10:59 +0100)
* origin/maint:
  tests: close files in glr-regression
  xml: match DOT output and xml2dot.xsl processing
  xml: factor xslt space template
  graph: fix a memory leak
  xml: documentation
  output: capitalize State

1  2 
NEWS
doc/bison.texi
src/print.c
src/print_graph.c
tests/conflicts.at
tests/existing.at
tests/glr-regression.at
tests/local.at
tests/output.at
tests/reduce.at
tests/regression.at

diff --cc NEWS
Simple merge
diff --cc doc/bison.texi
Simple merge
diff --cc src/print.c
Simple merge
index 918a3df8937e94686c5f9d4efb3b90a90896d538,f4742b165876ccfe9fc45cd9136b0b7456337006..31e0e382d5378450d974ae7013bdfa3a85b5c521
@@@ -152,22 -148,24 +149,24 @@@ print_actions (state const *s, FILE *fg
    for (i = 0; i < trans->num; i++)
      if (!TRANSITION_IS_DISABLED (trans, i))
        {
 -      state *s1 = trans->states[i];
 -      symbol_number sym = s1->accessing_symbol;
 -
 -      /* Shifts are solid, gotos are dashed, and error is dotted.  */
 -      char const *style =
 -        (TRANSITION_IS_ERROR (trans, i) ? "dotted"
 -         : TRANSITION_IS_SHIFT (trans, i) ? "solid"
 -         : "dashed");
 -
 -      if (TRANSITION_IS_ERROR (trans, i)
 -          && strcmp (symbols[sym]->tag, "error") != 0)
 -        abort ();
 -      output_edge (s->number, s1->number,
 -                   TRANSITION_IS_ERROR (trans, i) ? NULL : symbols[sym]->tag,
 -                   style, fgraph);
 +        state *s1 = trans->states[i];
 +        symbol_number sym = s1->accessing_symbol;
 +
 +        /* Shifts are solid, gotos are dashed, and error is dotted.  */
 +        char const *style =
 +          (TRANSITION_IS_ERROR (trans, i) ? "dotted"
 +           : TRANSITION_IS_SHIFT (trans, i) ? "solid"
 +           : "dashed");
 +
 +        if (TRANSITION_IS_ERROR (trans, i)
 +            && STRNEQ (symbols[sym]->tag, "error"))
 +          abort ();
 +        output_edge (s->number, s1->number,
 +                     TRANSITION_IS_ERROR (trans, i) ? NULL : symbols[sym]->tag,
 +                     style, fgraph);
        }
+   /* Display reductions. */
+   output_red (s, s->reductions, fgraph);
  }
  
  
Simple merge
Simple merge
Simple merge
diff --cc tests/local.at
Simple merge
diff --cc tests/output.at
Simple merge
diff --cc tests/reduce.at
Simple merge
Simple merge