aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-08-08 22:51:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-08-08 22:51:53 +0300
commit49658bfd0ef5d4efccd210c48560c43bf455ee16 (patch)
tree424786ecd8935fa1c7a281076ce70f896bb8ce3a /gawkapi.h
parent88e81c931345aa485e55c6d6c7f3ad61dc200fed (diff)
downloadegawk-49658bfd0ef5d4efccd210c48560c43bf455ee16.tar.gz
egawk-49658bfd0ef5d4efccd210c48560c43bf455ee16.tar.bz2
egawk-49658bfd0ef5d4efccd210c48560c43bf455ee16.zip
Move struct stat into IOBUF_PUBLIC.
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;