gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, extgawk, updated. e33b672ff4ab1b7469355a


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, extgawk, updated. e33b672ff4ab1b7469355a79eaf4c4740f412e45
Date: Wed, 11 Jul 2012 13:35:22 +0000

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, extgawk has been updated
       via  e33b672ff4ab1b7469355a79eaf4c4740f412e45 (commit)
      from  e14e5c9737c2e8e61a3f5184525d7e9cbb3170b8 (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=e33b672ff4ab1b7469355a79eaf4c4740f412e45

commit e33b672ff4ab1b7469355a79eaf4c4740f412e45
Author: Andrew J. Schorr <address@hidden>
Date:   Wed Jul 11 09:34:46 2012 -0400

    Patch API sym_update to accept AWK_UNDEFINED for "".

diff --git a/ChangeLog b/ChangeLog
index 4b2ce3b..759daaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-11         Andrew J. Schorr     <address@hidden>
+
+       * gawkapi.c (api_sym_update): Allow val_type to be AWK_UNDEFINED
+       for setting a variable to "", i.e. dupnode(Nnull_string).
+
 2012-07-10         Andrew J. Schorr     <address@hidden>
 
        * awkgram.y (add_srcfile): Lint warning message for a previously loaded
diff --git a/gawkapi.c b/gawkapi.c
index ad82f6f..3fa3e3b 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -468,6 +468,7 @@ api_sym_update(awk_ext_id_t id, const char *name, 
awk_value_t *value)
        switch (value->val_type) {
        case AWK_STRING:
        case AWK_NUMBER:
+       case AWK_UNDEFINED:
                if (node->type == Node_var || node->type == Node_var_new) {
                        unref(node->var_value);
                        node->var_value = awk_value_to_node(value);
@@ -477,7 +478,6 @@ api_sym_update(awk_ext_id_t id, const char *name, 
awk_value_t *value)
                break;
 
        case AWK_ARRAY:
-       case AWK_UNDEFINED:
                return false;   /* not allowed */
        }
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 gawkapi.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]