APPROVE COMMIT 21.5
>>>>"APA" == Adrian Aichner
<adrian(a)xemacs.org> writes:
APA> Marcus, following variation of your
Dynarr_add patch builds and
APA> runs.
Thanks for working on this, Adrian. I've committed this patch.
src/ChangeLog addition:
2006-03-30 Adrian Aichner <adrian(a)xemacs.org>
* lisp.h (Dynarr_add): Add local variable imp to avoid VC6
internal compiler error.
manual-newgc-xemacs-21.5 source patch:
Diff command: cvs -q diff -u
Files affected: src/lisp.h
Index: src/lisp.h
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/lisp.h,v
retrieving revision 1.140
diff -u -r1.140 lisp.h
--- src/lisp.h 26 Mar 2006 14:33:39 -0000 1.140
+++ src/lisp.h 30 Mar 2006 23:07:00 -0000
@@ -1612,14 +1612,14 @@
#ifdef NEW_GC
#define Dynarr_add(d, el) \
do { \
+ const struct lrecord_implementation *imp = (d)->lisp_imp; \
if (Dynarr_verify_mod (d)->cur >= (d)->max) \
Dynarr_resize ((d), (d)->cur+1); \
((d)->base)[(d)->cur] = (el); \
\
- if ((d)->lisp_imp) \
+ if (imp) \
set_lheader_implementation \
- ((struct lrecord_header *)&(((d)->base)[(d)->cur]), \
- (d)->lisp_imp); \
+ ((struct lrecord_header *)&(((d)->base)[(d)->cur]), imp); \
\
(d)->cur++; \
if ((d)->cur > (d)->largest) \
--
Marcus