aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-09-23 15:16:24 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-09-23 15:16:24 +0300
commit5ce4ad58571fe5991950b2eb829ca918e2397acc (patch)
tree9cc9543118ffd6c9db63df1cf2c88afed3234e59
parent0aa0451ebbbc6326d0ab785e40e6dd40fb93b77e (diff)
parent0aa436242079ab162deec10459446acc33b6f8ee (diff)
downloadegawk-5ce4ad58571fe5991950b2eb829ca918e2397acc.tar.gz
egawk-5ce4ad58571fe5991950b2eb829ca918e2397acc.tar.bz2
egawk-5ce4ad58571fe5991950b2eb829ca918e2397acc.zip
Merge branch 'gawk-5.1-stable'
-rw-r--r--ChangeLog4
-rw-r--r--gawkapi.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c0435b7..1d72b593 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-09-23 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkapi.h: Some clean-up of comments in the header file.
+
2021-09-12 Arnold D. Robbins <arnold@skeeve.com>
* interpret.h: Remove subscript_in_array variable.
diff --git a/gawkapi.h b/gawkapi.h
index 9967aa26..69dd843f 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);