Summary: pass decoration triple to mapfam worker routines by value (instead of by...
authorSebastian Freundt <hroptatyr@fresse.org>
Sun, 6 Oct 2013 07:56:53 +0000 (07:56 +0000)
committerSebastian Freundt <hroptatyr@fresse.org>
Sun, 6 Oct 2013 07:56:53 +0000 (07:56 +0000)
commitf303f85925cb02173488ecc9811599d20325dc98
tree21e33fdb968663a1ba3fe9984334d153e4e15ce4
parentb4fc89eb4bfa765772f9287573021fb442a71673
Summary: pass decoration triple to mapfam worker routines by value (instead of by-ref)
Keywords: fix bug 162

This changeset fixes the issues described in bug 162
(http://issues.sxemacs.org/show_bug.cgi?id=162).

The mapfam worker routine __pntw_1seq() (operate pointwise on just one sequence)
gets its decoration values (the initiator, the separator and the terminator) by
value now, i.e. on the stack.  Whereas before it got a pointer to a stack-alloc'd
struct in the main mapfam routine.

Gcc 4.8.1 probably changed the memory layout or scope rules for pointers to stack
alloc'd objects slightly, we will never know, as this hasn't been investigated.

Anyway, it's probably good to keep an eye out for similar problems that match
this pattern.
src/map.c