summaryrefslogtreecommitdiff
path: root/gawkapi.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-08-12 11:00:42 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-08-12 11:00:42 +0300
commit88f8278587c7f254d4c5bb2e8f996f3947da32e9 (patch)
tree1f793a7931d05ed51d0630d2b42062733b9e88f3 /gawkapi.h
parent8d5a66b529a220239037a3cd7a2421aab85de53d (diff)
downloadgawk-88f8278587c7f254d4c5bb2e8f996f3947da32e9.tar.gz
Make api versions into enum, not defines.
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gawkapi.h b/gawkapi.h
index b516787a..9b89e425 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -121,7 +121,7 @@ typedef struct iobuf_public {
* not returned, the parser must set *rt_len (and *rt_start if *rt_len
* is non-zero).
*/
- int (*get_record)(char **out, struct iobuf_public *, int *errcode,
+ int (*get_record)(char **out, struct iobuf_public *iobuf, int *errcode,
char **rt_start, size_t *rt_len);
/*
* The close_func is called to allow the parser to free private data.
@@ -154,8 +154,10 @@ typedef struct input_parser {
} awk_input_parser_t;
-#define GAWK_API_MAJOR_VERSION 0
-#define GAWK_API_MINOR_VERSION 0
+enum {
+ GAWK_API_MAJOR_VERSION = 0,
+ GAWK_API_MINOR_VERSION = 0
+};
#define DO_FLAGS_SIZE 6