in reply to Re: Redirecting XS stdout
in thread Redirecting XS stdout
++ You know what, that's just the key I needed!
I'm trying to wrap some C with as little modification as possible (staying current with the upstream). I didn't want to replace any IO calls directly, but after *seeing* your PerlIO call it dawned on me to simply override the stdio calls with PerlIO.
Thanks!#define fprintf(fh,...) PerlIO_printf(fh,__VA_ARGS__); #define stdout PerlIO_stdout() #define stderr PerlIO_stderr()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Redirecting XS stdout
by ikegami (Patriarch) on Feb 21, 2010 at 06:18 UTC | |
by cdarke (Prior) on Feb 21, 2010 at 08:24 UTC | |
by innominate (Beadle) on Feb 21, 2010 at 08:18 UTC |