[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/api-parser, updated. gawk-4.1.0-
From: |
Andrew J. Schorr |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/api-parser, updated. gawk-4.1.0-2488-g2156189 |
Date: |
Sun, 9 Apr 2017 18:54:09 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, feature/api-parser has been updated
via 215618921d2515040bd02fecc1a3438cd4949a5b (commit)
from 0d3bc6ff432fe62a6e46c543311d86c2781915c2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=215618921d2515040bd02fecc1a3438cd4949a5b
commit 215618921d2515040bd02fecc1a3438cd4949a5b
Author: Andrew J. Schorr <address@hidden>
Date: Sun Apr 9 18:53:50 2017 -0400
Fix comment in fw_parse_field and white space in gawkapi.h.
diff --git a/ChangeLog b/ChangeLog
index d740b43..60f3a73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-09 Andrew J. Schorr <address@hidden>
+
+ * field.c (fw_parse_field): Edit comment about resetting shift state.
+ * gawkapi.h (awk_fieldwidth_info_t): Make white space more uniform.
+
2017-03-27 Arnold D. Robbins <address@hidden>
* field.c (parse_field_func_t): New typedef. Used as needed.
diff --git a/field.c b/field.c
index b5f28c1..3810574 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) {
diff --git a/gawkapi.h b/gawkapi.h
index a8d6279..484ab27 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -132,7 +132,7 @@ typedef struct {
size_t nf;
struct awk_field_info {
size_t skip; /* amount to skip before field starts */
- size_t len; /* length of field */
+ size_t len; /* length of field */
} fields[1]; /* actual dimension should be nf */
} awk_fieldwidth_info_t;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
field.c | 8 ++++----
gawkapi.h | 2 +-
3 files changed, 10 insertions(+), 5 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/api-parser, updated. gawk-4.1.0-2488-g2156189,
Andrew J. Schorr <=