tests: formatting changes

* tests/actions.at, tests/local.at: here.
This commit is contained in:
Akim Demaille
2019-10-10 06:50:47 +02:00
parent 7d47d51962
commit 734db67004
2 changed files with 6 additions and 6 deletions

View File

@@ -345,9 +345,9 @@ int
main (void)
{]AT_CXX_IF([[
yy::parser p;
p.set_debug_level (!!getenv("YYDEBUG"));
p.set_debug_level (!!getenv ("YYDEBUG"));
return p.parse ();]], [[
yydebug = !!getenv("YYDEBUG");
yydebug = !!getenv ("YYDEBUG");
return !!yyparse (]AT_PARAM_IF([0])[);]])[
}
]])

View File

@@ -576,9 +576,9 @@ m4_define([AT_MAIN_DEFINE(c)],
int
main (int argc, char const* argv[])
{]AT_DEBUG_IF([[
yydebug = !!getenv("YYDEBUG");
yydebug = !!getenv ("YYDEBUG");
for (int i = 1; i < argc; ++i)
if (!strcmp(argv[i], "-p")
if (!strcmp (argv[i], "-p")
|| !strcmp (argv[i], "-d") || !strcmp (argv[i], "--debug"))
yydebug |= 1;
else if (!strcmp (argv[i], "-s") || !strcmp (argv[i], "--stat"))
@@ -627,9 +627,9 @@ int
main (int argc, char const* argv[])
{
]AT_NAMESPACE[::parser p;]AT_DEBUG_IF([[
int debug = !!getenv("YYDEBUG");
int debug = !!getenv ("YYDEBUG");
for (int i = 1; i < argc; ++i)
if (!strcmp(argv[i], "-p")
if (!strcmp (argv[i], "-p")
|| !strcmp (argv[i], "-d") || !strcmp (argv[i], "--debug"))
debug |= 1;
else if (!strcmp (argv[i], "-s") || !strcmp (argv[i], "--stat"))