|
NAMEh2ph - convert .h C header files to .ph Perl header filesSYNOPSISh2ph [-d destination directory] [-r | -a] [-l] [-h] [-e] [-D] [-Q] [headerfiles]DESCRIPTIONh2ph 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/* or cd /usr/include; h2ph * sys/* arpa/* netinet/* or cd /usr/include; h2ph -r -l . The output files are placed in the hierarchy rooted at Perl's architecture dependent library directory. You can specify a different hierarchy with a -d switch. If run with no arguments, filters standard input to standard output. OPTIONS
ENVIRONMENTNo environment variables are used.FILES/usr/include/*.h /usr/include/sys/*.h etc. AUTHORLarry WallSEE ALSOperl(1)DIAGNOSTICSThe usual warnings if it can't read or write the files involved.BUGSDoesn'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. You have to run this program by hand; it's not run as part of the Perl installation. Doesn't handle complicated expressions built piecemeal, a la: enum { FIRST_VALUE, SECOND_VALUE, #ifdef ABC THIRD_VALUE #endif }; Doesn't necessarily locate all of your C compiler's internally-defined symbols.
Visit the GSP FreeBSD Man Page Interface. |