X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e9690142325711b320ef444768fdd40a087d02f7..9ce27ab013185d1c17c78e0d57ff637319cb1e29:/src/print_graph.c diff --git a/src/print_graph.c b/src/print_graph.c index 29159a8c..61d36512 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -1,6 +1,6 @@ /* Output a graph of the generated parser, for Bison. - Copyright (C) 2001-2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2012 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -20,8 +20,6 @@ #include #include "system.h" -#include - #include "LR0.h" #include "closure.h" #include "complain.h" @@ -135,7 +133,7 @@ print_actions (state const *s, FILE *fgraph) : "dashed"); if (TRANSITION_IS_ERROR (trans, i) - && strcmp (symbols[sym]->tag, "error") != 0) + && STRNEQ (symbols[sym]->tag, "error")) abort (); output_edge (s->number, s1->number, TRANSITION_IS_ERROR (trans, i) ? NULL : symbols[sym]->tag,