It does something when SvROK(ST(2)) is true on entry, but it looks like a bug. (It's replacing a reference to the buf with the buf itself as a I read it.)
Update: More precisely, it's changing the contents of the scalar passed to the function from a reference to a string containing a copy of the buf. It does so for the sole purpose of calling SvSETMAGIC on the wrong variable.
In reply to Re: Perl XS - is this code required in DBD::Pg?
by ikegami
in thread Perl XS - is this code required in DBD::Pg?
by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |