aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-09-23 14:46:56 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-09-23 14:46:56 +0300
commit0aa436242079ab162deec10459446acc33b6f8ee (patch)
tree2a8d2075123b147748db40f45d047fd04253c706 /gawkapi.h
parent09fa9d26d41cc70e63469522d71674883bae5521 (diff)
downloadegawk-0aa436242079ab162deec10459446acc33b6f8ee.tar.gz
egawk-0aa436242079ab162deec10459446acc33b6f8ee.tar.bz2
egawk-0aa436242079ab162deec10459446acc33b6f8ee.zip
Small cleanup in gawkapi.h.
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 54130b15..7eccc70a 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -149,6 +149,7 @@ typedef struct awk_input {
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.
*
@@ -187,8 +188,8 @@ typedef struct awk_input {
const awk_fieldwidth_info_t **field_width);
/*
- * No argument prototype on read_func to allow for older systems
- * whose headers are not up to date.
+ * This replaces the POSIX read() system call. Use it if you want to
+ * manage reading raw bytes yourself, and let gawk parse the record.
*/
ssize_t (*read_func)(int, void *, size_t);