aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-02-08 16:18:45 +0000
committerStefan Monnier2008-02-08 16:18:45 +0000
commit68b587a6ead60e9bc02a0e912b793b88f3f63a44 (patch)
treeb46179a570480a08cb262ba27fc49ca968fada6e /src
parent02e3336d0cb244db986f0ef094d9aa577ef0a39a (diff)
downloademacs-68b587a6ead60e9bc02a0e912b793b88f3f63a44.tar.gz
emacs-68b587a6ead60e9bc02a0e912b793b88f3f63a44.zip
(concat): Move side effect outside of macro call.
(hash_clear): Use ASET.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fns.c12
2 files changed, 14 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 350e5573d17..a02c3e631f5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * fns.c (concat): Move side effect outside of macro call.
4 (hash_clear): Use ASET.
5
12008-02-08 Richard Stallman <rms@gnu.org> 62008-02-08 Richard Stallman <rms@gnu.org>
2 7
3 * frame.c (Fdelete_frame): If FORCE, don't call hooks. 8 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
diff --git a/src/fns.c b/src/fns.c
index 3a12768e621..d3f128ea2d1 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -727,7 +727,10 @@ concat (nargs, args, target_type, last_special)
727 thisindex++; 727 thisindex++;
728 } 728 }
729 else 729 else
730 elt = AREF (this, thisindex++); 730 {
731 elt = AREF (this, thisindex);
732 thisindex++;
733 }
731 734
732 /* Store this element into the result. */ 735 /* Store this element into the result. */
733 if (toindex < 0) 736 if (toindex < 0)
@@ -737,7 +740,10 @@ concat (nargs, args, target_type, last_special)
737 tail = XCDR (tail); 740 tail = XCDR (tail);
738 } 741 }
739 else if (VECTORP (val)) 742 else if (VECTORP (val))
740 AREF (val, toindex++) = elt; 743 {
744 ASET (val, toindex, elt);
745 toindex++;
746 }
741 else 747 else
742 { 748 {
743 CHECK_NUMBER (elt); 749 CHECK_NUMBER (elt);
@@ -4239,7 +4245,7 @@ hash_clear (h)
4239 } 4245 }
4240 4246
4241 for (i = 0; i < ASIZE (h->index); ++i) 4247 for (i = 0; i < ASIZE (h->index); ++i)
4242 AREF (h->index, i) = Qnil; 4248 ASET (h->index, i, Qnil);
4243 4249
4244 h->next_free = make_number (0); 4250 h->next_free = make_number (0);
4245 h->count = 0; 4251 h->count = 0;