in reply to Re^2: Inline C + IO::Handle
in thread FCGI + Inline::C fast stream out!
package MyModule; use Inline Config => ( DIRECTORY => './Inline', ); use Inline 'C'; sub _fprint { print { shift } @_ } # ... 1; __END__ __C__ int my_print(SV* fh, SV* sv) { int result; dSP; ENTER; SAVETMPS; PUSHMARK(SP); XPUSHs(fh); XPUSHs(sv); PUTBACK; call_pv("MyModule::_fprint", G_SCALAR); SPAGAIN; result = POPi; PUTBACK; FREETMPS; LEAVE; return result; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Inline C + IO::Handle
by mrakus (Initiate) on Apr 17, 2009 at 08:33 UTC | |
by ikegami (Patriarch) on Apr 17, 2009 at 13:41 UTC | |
by mrakus (Initiate) on Apr 17, 2009 at 17:59 UTC | |
by ikegami (Patriarch) on Apr 17, 2009 at 18:08 UTC | |
by mrakus (Initiate) on Apr 18, 2009 at 05:47 UTC | |
|