aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gawkapi.h b/gawkapi.h
index f345d07a..b516787a 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -100,6 +100,7 @@ extern "C" {
typedef struct iobuf_public {
const char *name; /* filename */
int fd; /* file descriptor */
+#define INVALID_HANDLE (-1)
void *opaque; /* private data for input parsers */
/*
* The get_record function is called to read the next record of data.
@@ -127,6 +128,9 @@ typedef struct iobuf_public {
* Gawk itself will close the fd unless close_func sets it to -1.
*/
void (*close_func)(struct iobuf_public *);
+
+ /* put last, for alignment. bleah */
+ struct stat sbuf; /* stat buf */
} IOBUF_PUBLIC;