mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
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:
20
data/c.m4
20
data/c.m4
@@ -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. ##
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ location_print (FILE *out, location loc)
|
|||||||
quotearg_n_style (3, escape_quoting_style, loc.start.file));
|
quotearg_n_style (3, escape_quoting_style, loc.start.file));
|
||||||
if (0 <= loc.start.line)
|
if (0 <= loc.start.line)
|
||||||
{
|
{
|
||||||
res += fprintf(out, ":%d", loc.start.line);
|
res += fprintf (out, ":%d", loc.start.line);
|
||||||
if (0 <= loc.start.column)
|
if (0 <= loc.start.column)
|
||||||
res += fprintf (out, ".%d", loc.start.column);
|
res += fprintf (out, ".%d", loc.start.column);
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ location_print (FILE *out, location loc)
|
|||||||
loc.end.file));
|
loc.end.file));
|
||||||
if (0 <= loc.end.line)
|
if (0 <= loc.end.line)
|
||||||
{
|
{
|
||||||
res += fprintf(out, ":%d", loc.end.line);
|
res += fprintf (out, ":%d", loc.end.line);
|
||||||
if (0 <= end_col)
|
if (0 <= end_col)
|
||||||
res += fprintf (out, ".%d", end_col);
|
res += fprintf (out, ".%d", end_col);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user