in reply to Using C-style .h as constants

You might want to look at the h2ph script that ships with Perl.

Cheers,

JohnGG