in reply to Re^2: Redirecting XS stdout
in thread Redirecting XS stdout

Exactly. You'd think something like this already exists. Maybe it does. (Google code search?)

Replies are listed 'Best First'.
Re^4: Redirecting XS stdout
by cdarke (Prior) on Feb 21, 2010 at 08:24 UTC
    Maybe it does

    fakesdio.h

    It is part of the base perl source code. See also perlsdio.h.
Re^4: Redirecting XS stdout
by innominate (Beadle) on Feb 21, 2010 at 08:18 UTC

    I think I've figured out why I didn't stumble on this method before..

    After redefining the macros, I discovered the code I'm wrapping is taking the "return early, return often" concept to the extreme by way of exits.

    Oh well, back to the drawing board!

    Thanks again :)