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

Re: [perl #22178] ExtUtils::Constant::WriteConstants doesn't handle enums

Thread Previous | Thread Next
From:
Tassilo von Parseval
Date:
May 12, 2003 10:34
Subject:
Re: [perl #22178] ExtUtils::Constant::WriteConstants doesn't handle enums
Message ID:
20030512171805.GB2923@ethan
On Mon, May 12, 2003 at 10:35:36AM +0000 vishnu@pobox.com (via RT) wrote:

> # New Ticket Created by  vishnu@pobox.com 
> # Please include the string:  [perl #22178]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22178 >
> 
> 
> 
> This is a bug report for perl from vishnu@pobox.com,
> generated with the help of perlbug 1.34 running under perl v5.8.0.
> 
> 
> -----------------------------------------------------------------
> 
> The generated code is wrapped with:
> 
> #ifdef SPECIAL_CONST
>  return SPECIAL_CONST;
> #else
>  return PERL_constant_NOTDEF;
> #endif
> 
> This totally breaks with enums.  If there some way to use this
> cool code generator with enums?

This is basically what I asked about in bugreport #21887. I am currently
patching h2xs to make it understand enums. Once I fully understand how
the different command-line switches of h2xs play together I can submit
the patch. It will then include a new switch -e/--omit-enums with which
h2xs can be told to fall back to the old behaviour of ignoring enums.
The additional switches haven't yet been discussed here but that will be
done (or will not, if no one objects) when the patch is ready.

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval


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