From 734db67004d272088c438e75c4e440906667c3d9 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 10 Oct 2019 06:50:47 +0200 Subject: [PATCH] tests: formatting changes * tests/actions.at, tests/local.at: here. --- tests/actions.at | 4 ++-- tests/local.at | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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"))