in reply to Re: Inline C + IO::Handle
in thread FCGI + Inline::C fast stream out!
Update: Changed PUSHs(fh) to XPUSHs(sv_2mortal(fh)). (Still sems to do the required task.)void my_print(SV * fh) { dSP; ENTER; SAVETMPS; PUSHMARK(SP); XPUSHs(sv_2mortal(fh)); XPUSHs(sv_2mortal(newSVpv("TEXT", 0))); PUTBACK; call_pv("MyFH::PRINT", G_DISCARD); FREETMPS; LEAVE; }
|
|---|