develooper Front page | perl.perl5.porters | Postings from February 2003

Re: MSWin32 seems lost again (18785)

Thread Previous | Thread Next
From:
Enache Adrian
Date:
February 28, 2003 15:08
Subject:
Re: MSWin32 seems lost again (18785)
Message ID:
20030228225052.GA952@ratsnest.hole
On Fri, Feb 28, 2003 at 05:33:03AM -0800, Gurusamy Sarathy wrote:
> >That's in embed.fnc like this:
> >
> >#ifdef PERL_COPY_ON_WRITE
> >Ap	|SV*	|sv_setsv_cow	|SV* dsv|SV* ssv
> >#endif
> >
> >Why isn't it working?
> 
> That's not sufficient on platforms that need to be told which
> symbols actually need to be exported (aix/os2/win*/macos/etc).
> makedef.pl assumes by default that all symbols mentioned in
> embed.fnc need exporting, so you need to tell it otherwise
> since the above symbol is only conditionally available.  It
> would be nice to make makedef.pl smarter (i.e. automatically
> parse the #ifdefs in embed.fnc) but something like the
> attached patch should take you past the above error.  The
> patch is completely untested (sorry, ENOTUIT).

Just an idea:

Would piping embed.fnc through the C preprocessor (before passing
it to embed.pl) work ?

Regards

Adi

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About