diff --git a/tests/actions.at b/tests/actions.at index ea12d0e7..f1218c8d 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -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])[);]])[ } ]]) diff --git a/tests/local.at b/tests/local.at index 3acb2791..d8811b0e 100644 --- a/tests/local.at +++ b/tests/local.at @@ -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"))