aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-08-24 13:40:22 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-08-24 13:40:22 +0300
commit759f2234c9bfa689151277fd2215bc0927cfc9c3 (patch)
tree90ea15331ba0d71540047385c93708bd9f966f5a /awk.h
parent8970970f3f3bc3d757fe491e90e608366fb7e604 (diff)
downloadegawk-759f2234c9bfa689151277fd2215bc0927cfc9c3.tar.gz
egawk-759f2234c9bfa689151277fd2215bc0927cfc9c3.tar.bz2
egawk-759f2234c9bfa689151277fd2215bc0927cfc9c3.zip
Add facility to get vesion info from extensions.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/awk.h b/awk.h
index 9b595072..d106d2e0 100644
--- a/awk.h
+++ b/awk.h
@@ -244,6 +244,8 @@ typedef struct Regexp {
#define RE_NEED_START 1 /* need to know start/end of match */
#define RE_NO_BOL 2 /* not allowed to match ^ in regexp */
+#include "gawkapi.h"
+
/* Stuff for losing systems. */
#if !defined(HAVE_STRTOD)
extern double gawk_strtod();
@@ -705,16 +707,6 @@ enum redirval {
struct break_point;
-#if 1
-#include "gawkapi.h"
-/* gawkapi.c: */
-extern gawk_api_t api_impl;
-extern void init_ext_api(void);
-extern void update_ext_api(void);
-extern NODE *awk_value_to_node(const awk_value_t *);
-extern void run_ext_exit_handlers(int exitval);
-#endif
-
typedef struct exp_instruction {
struct exp_instruction *nexti;
union {
@@ -1525,6 +1517,14 @@ typedef enum {
} field_sep_type;
extern field_sep_type current_field_sep(void);
+/* gawkapi.c: */
+extern gawk_api_t api_impl;
+extern void init_ext_api(void);
+extern void update_ext_api(void);
+extern NODE *awk_value_to_node(const awk_value_t *);
+extern void run_ext_exit_handlers(int exitval);
+extern void print_ext_versions(void);
+
/* gawkmisc.c */
extern char *gawk_name(const char *filespec);
extern void os_arg_fixup(int *argcp, char ***argvp);