develooper Front page | perl.perl5.porters | Postings from March 2006

Re: [PATCH] Redo PERL_UNUSED_DECL

Thread Previous | Thread Next
From:
Marcus Holland-Moritz
Date:
March 31, 2006 12:33
Subject:
Re: [PATCH] Redo PERL_UNUSED_DECL
Message ID:
20060331223155.6c7cbd95@r2d2
On 2006-03-31, at 00:54:58 -0600, Andy Lester wrote:

> I redid how the PERL_UNUSED_DECL macro works, which allowed me to remove
> the grumpy comment about it.

This will break XS modules. (I don't know how many, but it will
at least break mine.)

It'll even break modules that make use of Devel::PPPort, because
ppport.h only redefines PERL_UNUSED_DECL if it's undefined (for
pre-5.7.2 perls).

You cannot change the syntax of that macro and keep its name.
The old macro needs to be kept for compatibility reasons.

What you can do is introduce a new macro and use it throughout
the core. I can then add support for the new macro in D::PPP,
so module authors can also benefit from it.

Marcus

-- 
Emacs, n.:
	A slow-moving parody of a text editor.

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