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:
Akim Demaille
2008-08-16 15:29:30 +02:00
parent b3a28fd4e9
commit 30bb2edccf
3 changed files with 16 additions and 5 deletions

View File

@@ -23,9 +23,12 @@
# 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], [
], [
]) */])
\(.\)], [
\1]) */])
# b4_identification
# -----------------

View File

@@ -884,8 +884,8 @@ b4_percent_code_get[]dnl
<< yysym.location << ": ";
switch (yytype)
{
]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))dnl
[ default:
]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))[
default:
break;
}
yyo << ')';
@@ -1105,7 +1105,7 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
]b4_user_actions[
]b4_user_actions[
default:
break;
}