summaryrefslogtreecommitdiff
path: root/gawkapi.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-05-03 09:46:35 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-05-03 09:46:35 -0400
commitffb353c999bd3d5785b92a3aad78a96ff03a4ced (patch)
treea83b8a673d1529debe46bfb098355505b5595b32 /gawkapi.h
parent78169694440b5258ddb20c4d1fe0eb445a479e1f (diff)
downloadgawk-ffb353c999bd3d5785b92a3aad78a96ff03a4ced.tar.gz
Add CPP #defines for gawk_api_major_version and gawk_api_minor_version.
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 2be5c80a..e95cc75e 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -260,10 +260,13 @@ typedef struct awk_two_way_processor {
awk_const struct awk_two_way_processor *awk_const next; /* for use by gawk */
} awk_two_way_processor_t;
+#define gawk_api_major_version 1
+#define gawk_api_minor_version 1
+
/* Current version of the API. */
enum {
- GAWK_API_MAJOR_VERSION = 1,
- GAWK_API_MINOR_VERSION = 1
+ GAWK_API_MAJOR_VERSION = gawk_api_major_version,
+ GAWK_API_MINOR_VERSION = gawk_api_minor_version
};
/* A number of typedefs related to different types of values. */