h2pas(1)
NAME
h2pas - The C header to pascal unit conversion program.
SYNOPSIS
h2pas [options] filename
DESCRIPTION
Arrayheader file, and attempts to translate them to their pascal counterparts. see the CONSTRUCTS section for a full description of
what the translator can handle.
USAGE
Arraywith the extension .pp. The output file that h2pas creates can
be customized in a number of ways by means of many options.
OPTIONS
Array-x handle SYS_TRAP of the PalmOS header files.
CONSTRUCTS
Arraychar changed to char.
float changed to real (=double in free pascal).
int changed to longint.
long changed to longint.
Arrayto them; Free Pascal also allows this to a certain degree. If you
know that values are assigned to enums, it is best to use the -e
option to change the enus to a series of integer constants.
unions unions are changed to variant records.
- structs
- are changed to pascal records, with C packing.