On Fri, 05 Sep 2008, Torsten Schoenfeld wrote:
> Jan Dubois wrote:
> > It is somewhat confusing that you are using the typemap for your INPUT
> > parameter but then try to encode the OUTPUT parameter yourself.  You
> > should consistently do one or the other and not mix things (just for the
> > sake of maintaining the code later).
> 
> I don't see a way to avoid this if you use PPCODE sections to return more than
> one value.

Yes, so use CODE sections with multiple OUTPUT variables. You can still
explicitly adjust the stackpointer an XSRETURN_EMPTY in an error branch
if you don't want to return your output variables on error. The OUTPUT
handling is only executed when you fall off the end of your XS code.

Cheers,
-Jan


Reply via email to