From fc0dbb3bba902ee3e6d77379cb5c8227cb8dc3eb Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 30 Jan 2021 09:43:57 +0100 Subject: traces: display the Bison version * src/main.c (main): When traces are enabled, display the Bison version. * tests/conflicts.at, tests/report.at, tests/sets.at: Use AT_PACKAGE_VERSION (for package.m4) instead of post-processing the output. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index 3afb68ad..22291d23 100644 --- a/src/main.c +++ b/src/main.c @@ -94,6 +94,9 @@ main (int argc, char *argv[]) getargs (argc, argv); + if (trace_flag) + fprintf (stderr, "bison (GNU Bison) %s\n", VERSION); + timevar_enabled = trace_flag & trace_time; timevar_init (); timevar_start (tv_total); -- cgit v1.2.1