aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-05-06 08:10:58 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-05-06 08:10:58 +0300
commitd5e44f948f77d6b6d2e8c8db5efe2aade7d09c5d (patch)
treee38518d6c3000d1a5eeaedc113386db65147e2f2 /doc/gawktexi.in
parent07794eb7f53842e58e606b3f267f5686c4464e34 (diff)
parent7eed1513d0834de26528551f990372a5c2674ef2 (diff)
downloadegawk-d5e44f948f77d6b6d2e8c8db5efe2aade7d09c5d.tar.gz
egawk-d5e44f948f77d6b6d2e8c8db5efe2aade7d09c5d.tar.bz2
egawk-d5e44f948f77d6b6d2e8c8db5efe2aade7d09c5d.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in21
1 files changed, 12 insertions, 9 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index f47c8459..a044c45e 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -33246,15 +33246,18 @@ information about how @command{gawk} was invoked.
@cindex extension API version
The API provides both a ``major'' and a ``minor'' version number.
-The API versions are available at compile time as constants:
-
-@table @code
-@item GAWK_API_MAJOR_VERSION
-The major version of the API
-
-@item GAWK_API_MINOR_VERSION
-The minor version of the API
-@end table
+The API versions are available at compile time as C preprocessor defines
+to support conditional compilation, and as enum constants to facilitate
+debugging:
+
+@float Table,gawk-api-version
+@caption{gawk API version constants}
+@multitable @columnfractions .33 .33 .33
+@headitem API Version @tab C preprocessor define @tab enum constant
+@item Major @tab gawk_api_major_version @tab GAWK_API_MAJOR_VERSION
+@item Minor @tab gawk_api_minor_version @tab GAWK_API_MINOR_VERSION
+@end multitable
+@end float
The minor version increases when new functions are added to the API. Such
new functions are always added to the end of the API @code{struct}.