Martin Buchholz <martin(a)xemacs.org> writes:
ChangeLog:
1999-12-17 Martin Buchholz <martin(a)xemacs.org>
* fns.c (mapcar1): Fix ***THREE*** obscure crashes.
With a changelog matching in obscurity?
How about
1999-12-17 Martin Buchholz <martin(a)xemacs.org>
* fns.c (mapcar1): Allow for user code modifying the list we
are looping over.
* fns.c (mapcar1): Allow for the strings STRING_DATA being
reallocated triggered by user code actions.
+ We avoid these problems by making a copy of the list to be
traversed.
+
+ (We could also use EXTERNAL_LIST_LOOP and GCPRO the tail).
Why not do that? We can also do away with the caller calling Flength
when the results are not needed. Then we would only loop over the list
once and in addition the size of the list we can loop over is not
limited by the stack size limit.
Jan