summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-01-12 09:23:02 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-01-12 09:41:10 +0100
commit3355ee32f062745a45556834770906b1513aba10 (patch)
treecc7196f561e71c8d15ab1c0d8078502b54b75c50 /src
parent7d545fd23fb59fa9b90dca6a38d7dc0501c25488 (diff)
downloadbison-3355ee32f062745a45556834770906b1513aba10.tar.gz
style: formatting clean up
* data/skeletons/d.m4, examples/d/calc.y, src/output.c, * src/parse-gram.y: No tab, no trailing spaces. Reported by syntax-check.
Diffstat (limited to 'src')
-rw-r--r--src/output.c4
-rw-r--r--src/parse-gram.y2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/output.c b/src/output.c
index 6e3e0c2c..6a9553c5 100644
--- a/src/output.c
+++ b/src/output.c
@@ -236,7 +236,7 @@ prepare_rules (void)
prhs[r] = i;
/* RHS of the rule R. */
for (item_number *rhsp = rules[r].rhs; 0 <= *rhsp; ++rhsp)
- rhs[i++] = *rhsp;
+ rhs[i++] = *rhsp;
/* Separator in RHS. */
rhs[i++] = -1;
@@ -245,7 +245,7 @@ prepare_rules (void)
/* LHS of the rule R. */
r1[r] = rules[r].lhs->number;
/* Length of rule R's RHS. */
- r2[r] = rule_rhs_length(&rules[r]);
+ r2[r] = rule_rhs_length (&rules[r]);
/* Dynamic precedence (GLR). */
dprec[r] = rules[r].dprec;
/* Merger-function index (GLR). */
diff --git a/src/parse-gram.y b/src/parse-gram.y
index a0bf4a98..b0f89eb0 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -462,7 +462,7 @@ tag:
`-----------------------*/
// A non empty list of possibly tagged symbols for %nterm.
-//
+//
// Can easily be defined like symbol_decls but restricted to ID, but
// using token_decls allows to reudce the number of rules, and also to
// make nicer error messages on "%nterm 'a'" or '%nterm FOO "foo"'.