On Thu, Mar 04, 2010 at 04:40:41PM -0000, Steve Hay wrote:
Sorry, I meant to reply to this earlier but completely forgot.
I think it is deliberate: it is explicitly mentioned in perlapio.pod that the arguments have been reversed compared to the C library function (probably so that all the PerlIO functions have the 'f' first). And there's a further comment about it in perlxstut.pod too.
Are you sure the arguments are not reversed on Linux too? There's no mention of the reversal being Win32-specific.
While the args of the PerlIO functions are explicity reversed, I think
that OP is right, in that something is probably awry with the macro
For example in fakesdio.h, you have
#define fputs(s,f) PerlIO_puts(f,s)
which does the correct arg reversal.
*However*: out in XS/win32 land, you appear to have: