summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2017-03-22 08:04:39 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2017-03-22 08:04:39 -0400
commit1a417d68f71b18525c572b903086f451ed75902b (patch)
treecbccadc7918d34672e3cbca11479d6d01cf4ca09
parentd1bebd3cbf60fa25883271512cf63e0c3275e3ef (diff)
downloadgawk-1a417d68f71b18525c572b903086f451ed75902b.tar.gz
Fix gawkapi.h comment describing the new get_record field_width argument.
-rw-r--r--ChangeLog5
-rw-r--r--gawkapi.h15
2 files changed, 11 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index feea67af..54b76636 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-22 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * gawkapi.h (awk_input_buf_t): Update get_record comment regarding the
+ new field_width argument.
+
2017-03-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
* gawkapi.h (awk_fieldwidth_info_t): Define new structure to contain
diff --git a/gawkapi.h b/gawkapi.h
index 1ea067f4..da538115 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -171,15 +171,12 @@ typedef struct awk_input {
* on the value of *errcode (e.g., setting *errcode = errno should do
* the right thing).
*
- * If field_width is non-NULL, then its value will be initialized
- * to NULL, and the function may set it to point to an array of
- * structures supplying field width information to override the default
- * gawk field parsing mechanism. The field_width array should have
- * at least NF+1 elements, and the value of field_width[NF].skip
- * must be negative. Note that these values are specified
- * in bytes, not (potentially multi-byte) characters! And note that this
- * array will not be copied by gawk; it must persist at least until the
- * next call to get_record or close_func. Note that field_width will
+ * If field_width is non-NULL, then *field_width will be initialized
+ * to NULL, and the function may set it to point to a structure
+ * supplying field width information to override the default
+ * gawk field parsing mechanism. Note that this structure will not
+ * be copied by gawk; it must persist at least until the next call
+ * to get_record or close_func. Note also that field_width will
* be NULL when getline is assigning the results to a variable, thus
* field parsing is not needed.
*/