projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: more syntax-checks
[bison.git]
/
src
/
derives.c
diff --git
a/src/derives.c
b/src/derives.c
index dc6049c7979d56f4e22d1b23ca63e1394e80d89b..aa4d927f050e976e75ea015feba9291ad66afc65 100644
(file)
--- a/
src/derives.c
+++ b/
src/derives.c
@@
-1,7
+1,7
@@
/* Match rules with nonterminals for bison,
/* Match rules with nonterminals for bison,
- Copyright (C) 1984, 1989, 2000
, 2001, 2002, 2003, 2005 Fre
e
-
Software
Foundation, Inc.
+ Copyright (C) 1984, 1989, 2000
-2003, 2005, 2009-2012 Free Softwar
e
+ Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
This file is part of Bison, the GNU Compiler Compiler.
@@
-47,12
+47,13
@@
print_derives (void)
for (i = ntokens; i < nsyms; i++)
{
rule **rp;
for (i = ntokens; i < nsyms; i++)
{
rule **rp;
- fprintf (stderr, "
\t
%s derives\n", symbols[i]->tag);
+ fprintf (stderr, "
%s derives\n", symbols[i]->tag);
for (rp = derives[i - ntokens]; *rp; ++rp)
for (rp = derives[i - ntokens]; *rp; ++rp)
- {
- fprintf (stderr, "\t\t%3d ", (*rp)->user_number);
- rule_rhs_print (*rp, stderr);
- }
+ {
+ fprintf (stderr, " %3d ", (*rp)->user_number);
+ rule_rhs_print (*rp, stderr);
+ fprintf (stderr, "\n");
+ }
}
fputs ("\n\n", stderr);
}
fputs ("\n\n", stderr);
@@
-96,10
+97,10
@@
derives_compute (void)
rule_list *p = dset[i - ntokens];
derives[i - ntokens] = q;
while (p)
rule_list *p = dset[i - ntokens];
derives[i - ntokens] = q;
while (p)
- {
- *q++ = p->value;
- p = p->next;
- }
+
{
+
*q++ = p->value;
+
p = p->next;
+
}
*q++ = NULL;
}
*q++ = NULL;
}