[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, constants, updated. gawk-4.1.0-1121-gfab
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, constants, updated. gawk-4.1.0-1121-gfabbef6 |
Date: |
Fri, 13 Feb 2015 09:53:40 +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, constants has been updated
via fabbef63448b32723072cadc706dd909828c432a (commit)
from c959250071decbc002b208e23812334b377589be (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=fabbef63448b32723072cadc706dd909828c432a
commit fabbef63448b32723072cadc706dd909828c432a
Author: Arnold D. Robbins <address@hidden>
Date: Fri Feb 13 11:53:15 2015 +0200
Correctly handle simple assignment from a constant.
diff --git a/ChangeLog b/ChangeLog
index c627246..ec79fdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-02-13 Arnold D. Robbins <address@hidden>
+ * interpet.h (Op_store_var): Handle assignment from a constant.
+
+2015-02-13 Arnold D. Robbins <address@hidden>
+
* awkgram.y (yylex): Be more careful about passing true to
nextc() when collecting a regexp. Some systems' iscntrl()
are not as forgiving as GLIBC's. E.g., Solaris.
diff --git a/interpret.h b/interpret.h
index 428a9d0..d776801 100644
--- a/interpret.h
+++ b/interpret.h
@@ -680,6 +680,11 @@ mod:
r = POP_SCALAR();
UNFIELD(*lhs, r);
}
+ if (((*lhs)->flags & VAR_CONST) != 0) {
+ NODE *t = *lhs;
+ *lhs = dupnode(t);
+ unref(t);
+ }
break;
case Op_store_field:
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
interpret.h | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, constants, updated. gawk-4.1.0-1121-gfabbef6,
Arnold Robbins <=