h2ph broken in 5.004_02
> The h2ph in perl5.00402 generates perl code that the interpeter
> chokes on. For example, running h2ph on /usr/include/sys/errno.h
> (under openbsd) transforms this:
>
> #define EPERM 1 /* Operation not permitted */
>
> into this:
>
> unless(defined(&EPERM) {
> sub EPERM () {1;}
> }
>
> which in turn causes this:
>
> syntax error at - line 2, near "sub EPERM ()"
>
> I'm not exactly sure why h2ph is worried about avoiding redefinition . . .
It's not a redefinition problem; errno.ph is missing a right paren. Here
is a patch, tested against 5.004_02:
Credited: David Mazieres <dm@reeducation-labor.lcs.mit.edu>
p5p-msgid:
199708201700.KAA02621@www.chapin.edu