[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/fixtype, updated. gawk-4.1.0-181
From: |
Andrew J. Schorr |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/fixtype, updated. gawk-4.1.0-1816-ge8ba153 |
Date: |
Tue, 14 Jun 2016 19:15:05 +0000 (UTC) |
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/fixtype has been updated
via e8ba153719506aabfffc911d2519727a3bfc5a36 (commit)
from b54c54d30fe20cfb5f0794cd85eeec7783800866 (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=e8ba153719506aabfffc911d2519727a3bfc5a36
commit e8ba153719506aabfffc911d2519727a3bfc5a36
Author: Andrew J. Schorr <address@hidden>
Date: Tue Jun 14 15:14:37 2016 -0400
Fix gawkapi node_to_awk_value to check scalar type correctly.
diff --git a/ChangeLog b/ChangeLog
index 692f2a8..a016ca9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-14 Andrew J. Schorr <address@hidden>
+
+ * gawkapi.c (node_to_awk_value): When caller requests AWK_SCALAR
+ or AWK_UNDEFINED, we need to call fixtype before we check the type.
+
2016-06-13 Andrew J. Schorr <address@hidden>
* awkgram.y: Eliminate STRCUR tests. Must use STRING to test whether
diff --git a/gawkapi.c b/gawkapi.c
index b961f79..3d9f61a 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -445,6 +445,7 @@ node_to_awk_value(NODE *node, awk_value_t *val,
awk_valtype_t wanted)
break;
case AWK_SCALAR:
+ fixtype(node);
if ((node->flags & NUMBER) != 0) {
val->val_type = AWK_NUMBER;
} else if ((node->flags & STRING) != 0) {
@@ -456,6 +457,7 @@ node_to_awk_value(NODE *node, awk_value_t *val,
awk_valtype_t wanted)
case AWK_UNDEFINED:
/* return true and actual type for request of undefined
*/
+ fixtype(node);
if (node == Nnull_string) {
val->val_type = AWK_UNDEFINED;
ret = awk_true;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
gawkapi.c | 2 ++
2 files changed, 7 insertions(+)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/fixtype, updated. gawk-4.1.0-1816-ge8ba153,
Andrew J. Schorr <=