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;evalThread Previous | Thread Next