aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-19 15:26:36 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-19 15:26:36 +0200
commite468705fb6c7f2b2384c20f320e617cdbd55238c (patch)
tree78b29b2f4e74a30688d23b1fba8dd4f58eec6dee /gawkapi.h
parentab76bb69f10de31c94d7b6855c85402673a4e5ed (diff)
downloadegawk-e468705fb6c7f2b2384c20f320e617cdbd55238c.tar.gz
egawk-e468705fb6c7f2b2384c20f320e617cdbd55238c.tar.bz2
egawk-e468705fb6c7f2b2384c20f320e617cdbd55238c.zip
Move read_func from IOBUF into awk_input_buf_t.
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 8fc08161..de9197e0 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -152,6 +152,12 @@ typedef struct awk_input {
char **rt_start, size_t *rt_len);
/*
+ * No argument prototype on read_func to allow for older systems
+ * whose headers are not up to date.
+ */
+ ssize_t (*read_func)();
+
+ /*
* The close_func is called to allow the parser to free private data.
* Gawk itself will close the fd unless close_func first sets it to
* INVALID_HANDLE.