Amiga Unix — 68040 · 68060

Manual pages › Extra programs: news, mail, languages, tools (1L)

h2ph(1L)

convert .h C header files to .ph Perl header files

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

h2ph - convert .h C header files to .ph Perl header files

h2ph [headerfiles]

h2ph converts any C header files specified to the corresponding Perl header file format. It is most easily run while in /usr/include:

	cd /usr/include; h2ph * sys/*

If run with no arguments, filters standard input to standard output.

No environment variables are used.

/usr/include/*.h
/usr/include/sys/*.h
etc.

Larry Wall

perl(1)

The usual warnings if it can't read or write the files involved.

Doesn't construct the %sizeof array for you.

It doesn't handle all C constructs, but it does attempt to isolate definitions inside evals so that you can get at the definitions that it can translate.

It's only intended as a rough tool. You may need to dicker with the files produced.

August 8, 1990 7th Edition