Copyright (C) 2000-2012 |
Manpages H2PHSection: Perl Programmers Reference Guide (1)Updated: 2005-03-28 Index Return to Main Contents NAMEh2ph - convert .h C header files to .ph Perl header filesSYNOPSISh2ph [-d destination directory] [-r | -a] [-l] [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 -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/*.hetc. 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.
IndexThis document was created by man2html, using the manual pages. Time: 08:55:53 GMT, November 14, 2024 |