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

Re: Expose PERL_PATCHLEVEL [PATCH]

Thread Previous | Thread Next
From:
Stas Bekman
Date:
October 19, 2003 13:16
Subject:
Re: Expose PERL_PATCHLEVEL [PATCH]
Message ID:
3F92E31E.2090204@stason.org
Gisle Aas wrote:
> Yitzchak Scott-Thoennes <sthoenna@efn.org> writes:
> 
> 
>>That's no fix.
> 
> 
> How about this patch then.  It exposes PERL_PATCHLEVEL from config.h
> so that XS code can put conditions on it and also make $] and $^V
> include it.  With a bleadperl patched like this I get:

That would be great!

in mod_perl 2.0 we use *comments*, to explain when blead/maint versions have 
changed in case someone uses a maint build, instead of using a macro, e.g.:

/* This was fixed in 5.9.0/5.8.1 (17775), but won't compile after 19122 */
#if PERL_REVISION == 5 && PERL_VERSION == 8 && PERL_SUBVERSION == 0 && \
     defined(USE_REENTRANT_API) && defined(HAS_CRYPT_R) && defined(__GLIBC__)
     /* workaround perl5.8.0/glibc bug */
     PL_reentrant_buffer->_crypt_struct.current_saltbits = 0;
#endif

ugly :(

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


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