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

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

Thread Previous | Thread Next
Tassilo von Parseval
May 12, 2003 10:34
Re: [perl #22178] ExtUtils::Constant::WriteConstants doesn't handle enums
Message ID:
On Mon, May 12, 2003 at 10:35:36AM +0000 (via RT) wrote:

> # New Ticket Created by 
> # Please include the string:  [perl #22178]
> # in the subject line of all future correspondence about this issue. 
> # <URL: >
> This is a bug report for perl from,
> generated with the help of perlbug 1.34 running under perl v5.8.0.
> -----------------------------------------------------------------
> The generated code is wrapped with:
>  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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About