diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-03-22 08:04:39 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-03-22 08:04:39 -0400 |
commit | 1a417d68f71b18525c572b903086f451ed75902b (patch) | |
tree | cbccadc7918d34672e3cbca11479d6d01cf4ca09 | |
parent | d1bebd3cbf60fa25883271512cf63e0c3275e3ef (diff) | |
download | egawk-1a417d68f71b18525c572b903086f451ed75902b.tar.gz egawk-1a417d68f71b18525c572b903086f451ed75902b.tar.bz2 egawk-1a417d68f71b18525c572b903086f451ed75902b.zip |
Fix gawkapi.h comment describing the new get_record field_width argument.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gawkapi.h | 15 |
2 files changed, 11 insertions, 9 deletions
@@ -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 @@ -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. */ |