X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/fec5f3c0cc2c50a779dafb928fda105c1782446b..b702ec61abb99069914da30e9010a7cae4bcf04e:/src/gram.c diff --git a/src/gram.c b/src/gram.c index c0177df0..db7034d5 100644 --- a/src/gram.c +++ b/src/gram.c @@ -1,6 +1,6 @@ /* Allocate input grammar variables for Bison. - Copyright (C) 1984, 1986, 1989, 2001-2003, 2005-2013 Free Software + Copyright (C) 1984, 1986, 1989, 2001-2003, 2005-2014 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -93,16 +93,14 @@ rule_rhs_length (rule const *r) void rule_rhs_print (rule const *r, FILE *out) { - if (*r->rhs >= 0) + if (0 <= *r->rhs) { item_number *rp; for (rp = r->rhs; *rp >= 0; rp++) fprintf (out, " %s", symbols[*rp]->tag); } else - { - fprintf (out, " /* %s */", _("empty")); - } + fputs (" %empty", out); } static void