mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Avoid trailing spaces.
* data/c.m4: b4_comment(TEXT): Don't indent empty lines. * data/lalr1.cc: Don't indent before rule and symbol actions, as they can be empty, and anyway this incorrectly indents the first action.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2008-11-10 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
|
Avoid trailing spaces.
|
||||||
|
* data/c.m4: b4_comment(TEXT): Don't indent empty lines.
|
||||||
|
* data/lalr1.cc: Don't indent before rule and symbol actions, as
|
||||||
|
they can be empty, and anyway this incorrectly indents the first
|
||||||
|
action.
|
||||||
|
|
||||||
2008-11-10 Akim Demaille <demaille@gostai.com>
|
2008-11-10 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
Comment changes.
|
Comment changes.
|
||||||
|
|||||||
@@ -23,9 +23,12 @@
|
|||||||
|
|
||||||
# b4_comment(TEXT)
|
# b4_comment(TEXT)
|
||||||
# ----------------
|
# ----------------
|
||||||
|
# Put TEXT in comment. Avoid trailing spaces: don't indent empty lines.
|
||||||
|
# Avoid adding indentation to the first line, as the indentation comes
|
||||||
|
# from "/*". That's why we don't patsubst([$1], [^\(.\)], [ \1]).
|
||||||
m4_define([b4_comment], [/* m4_bpatsubst([$1], [
|
m4_define([b4_comment], [/* m4_bpatsubst([$1], [
|
||||||
], [
|
\(.\)], [
|
||||||
]) */])
|
\1]) */])
|
||||||
|
|
||||||
# b4_identification
|
# b4_identification
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
@@ -884,8 +884,8 @@ b4_percent_code_get[]dnl
|
|||||||
<< yysym.location << ": ";
|
<< yysym.location << ": ";
|
||||||
switch (yytype)
|
switch (yytype)
|
||||||
{
|
{
|
||||||
]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))dnl
|
]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))[
|
||||||
[ default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
yyo << ')';
|
yyo << ')';
|
||||||
@@ -1105,7 +1105,7 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
|
|||||||
YY_REDUCE_PRINT (yyn);
|
YY_REDUCE_PRINT (yyn);
|
||||||
switch (yyn)
|
switch (yyn)
|
||||||
{
|
{
|
||||||
]b4_user_actions[
|
]b4_user_actions[
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user