aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2017-04-09 18:53:50 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2017-04-09 18:53:50 -0400
commit215618921d2515040bd02fecc1a3438cd4949a5b (patch)
treea749a07aaddc36b8523a01a272d5311cb0535b39 /field.c
parent0d3bc6ff432fe62a6e46c543311d86c2781915c2 (diff)
downloadegawk-215618921d2515040bd02fecc1a3438cd4949a5b.tar.gz
egawk-215618921d2515040bd02fecc1a3438cd4949a5b.tar.bz2
egawk-215618921d2515040bd02fecc1a3438cd4949a5b.zip
Fix comment in fw_parse_field and white space in gawkapi.h.
Diffstat (limited to 'field.c')
-rw-r--r--field.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/field.c b/field.c
index b5f28c17..38105745 100644
--- a/field.c
+++ b/field.c
@@ -771,10 +771,10 @@ fw_parse_field(long up_to, /* parse only up to this field number */
return nf;
if (gawk_mb_cur_max > 1 && fw->use_chars) {
/*
- * Reset the shift state for each field, since there might
- * be who-knows-what kind of stuff in between fields,
- * and we assume each field starts with a valid (possibly
- * multibyte) character.
+ * Reset the shift state. Arguably, the shift state should
+ * be part of the file state and carried forward at all times,
+ * but nobody has complained so far, so this may not matter
+ * in practice.
*/
memset(&mbs, 0, sizeof(mbstate_t));
while (nf < up_to) {