8.4.1 Options

The output of h2pas can be controlled with the following options:

-d
use external; for all procedure and function declarations.
-D
use external libname name 'func_name' for function and procedure declarations.
-e
Emit a series of constants instead of an enumeration type for the C enum construct.
-i
create an include le instead of a unit (omits the unit header).
-l
libname specify the library name for external function declarations.
-o
outle Specify the output le name. Default is the input le name with the extension replaced by .pp
-p
use the letter P in front of pointer type parameters instead of ^.
-s
Strip comments from the input le. By default comments are converted to comments, but they may be displaced, since a comment is handled by the scanner.
-t
prepend typedef type names with the letter T (used to follow Borland's convention that all types should be dened with T).
-v
replace pointer parameters by call by reference parameters. Use with care because some calls can expect a Nil pointer.
-w
Header le is a win32 header le (adds support for some special macros).
-x
handle SYS_TRAP of the PalmOS header les.