aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-01-31 20:32:31 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-01-31 20:32:31 +0200
commit1ff958d4fcd4d458c433c416fb119cc20e5eeba8 (patch)
tree05de6c4a99244dcc0a2369cd39accf9031517c17 /main.c
parent2630adaa89d50ee7c712e39886ecb69d36426cb5 (diff)
downloadegawk-1ff958d4fcd4d458c433c416fb119cc20e5eeba8.tar.gz
egawk-1ff958d4fcd4d458c433c416fb119cc20e5eeba8.tar.bz2
egawk-1ff958d4fcd4d458c433c416fb119cc20e5eeba8.zip
Add API to --version output. Use it for shlib tests.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 7d4458ba..c3adc9f5 100644
--- a/main.c
+++ b/main.c
@@ -1426,6 +1426,9 @@ static void
version()
{
printf("%s", version_string);
+#ifdef DYNAMIC
+ printf(", API: %d.%d", GAWK_API_MAJOR_VERSION, GAWK_API_MINOR_VERSION);
+#endif
#ifdef HAVE_MPFR
printf(" (GNU MPFR %s, GNU MP %s)", mpfr_get_version(), gmp_version);
#endif