formatting changes

* data/c.m4: Fix comments, put macros in a more natural order.
Space changes (from M-x whitespace-cleanup).
* src/location.c: Fix spaces.
* tests/actions.at: Space changes.
This commit is contained in:
Akim Demaille
2012-11-30 11:19:33 +01:00
parent 5215919366
commit 4c36bc2b8d
3 changed files with 28 additions and 28 deletions

View File

@@ -355,9 +355,18 @@ m4_define([b4_c_knr_formal_decl],
## ------------------------------------------------------------ ## ## ------------------------------------------------------------ ##
# b4_c_ansi_function_decl(NAME, RETURN-VALUE, [DECL1, NAME1], ...)
# ----------------------------------------------------------------
# Declare the function NAME ANSI C style.
m4_define([b4_c_ansi_function_decl],
[$2 $1 (b4_c_ansi_formals(m4_shift2($@)));[]dnl
])
# b4_c_function_decl(NAME, RETURN-VALUE, [DECL1, NAME1], ...) # b4_c_function_decl(NAME, RETURN-VALUE, [DECL1, NAME1], ...)
# ----------------------------------------------------------- # -----------------------------------------------------------
# Declare the function NAME. # Declare the function NAME in both K&R and ANSI C.
m4_define([b4_c_function_decl], m4_define([b4_c_function_decl],
[#if defined __STDC__ || defined __cplusplus [#if defined __STDC__ || defined __cplusplus
b4_c_ansi_function_decl($@) b4_c_ansi_function_decl($@)
@@ -367,15 +376,6 @@ $2 $1 ();
]) ])
# b4_c_ansi_function_decl(NAME, RETURN-VALUE, [DECL1, NAME1], ...)
# ----------------------------------------------------------------
# Declare the function NAME.
m4_define([b4_c_ansi_function_decl],
[$2 $1 (b4_c_ansi_formals(m4_shift2($@)));[]dnl
])
## --------------------- ## ## --------------------- ##
## Calling C functions. ## ## Calling C functions. ##