From e468705fb6c7f2b2384c20f320e617cdbd55238c Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 19 Dec 2012 15:26:36 +0200 Subject: Move read_func from IOBUF into awk_input_buf_t. --- gawkapi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gawkapi.h') diff --git a/gawkapi.h b/gawkapi.h index 8fc08161..de9197e0 100644 --- a/gawkapi.h +++ b/gawkapi.h @@ -151,6 +151,12 @@ typedef struct awk_input { int (*get_record)(char **out, struct awk_input *iobuf, int *errcode, 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 -- cgit v1.2.3