when the output isn't RETVAL, update the SV instead of replacing it
authorTony Cook <tony@develop-help.com>
Wed, 19 Dec 2012 22:10:01 +0000 (09:10 +1100)
committerTony Cook <tony@develop-help.com>
Wed, 19 Dec 2012 22:31:31 +0000 (09:31 +1100)
commit9712754a3e851ea70c1032ffb5e577dc0fdeca7b
tree120728c71441fe043d7cbbbf6a7b86e5a2a2e01c
parent85b59111fe65fd8577540e06fa1067b29f0b7a1e
when the output isn't RETVAL, update the SV instead of replacing it

Previously OUTPUT argument parameters would replace ST(n) instead of
updating it, this meant that the caller's supplied value would not be
updated.

This change means that OUTPUT T_BOOL arguments called RETVAL won't be
handled correctly, but since the OUTPUT didn't work previously for
*any* case, this is a net improvement.
ext/XS-Typemap/t/Typemap.t
lib/ExtUtils/typemap