Difference between revisions of "H2Pas"

From Lazarus wiki
Jump to navigationJump to search
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{H2Pas}}
 
{{H2Pas}}
  
From [ftp://ftp.freepascal.org/pub/fpc/docs-pdf/user.pdf FreePascal User's Manual]:
+
Adapted from [ftp://ftp.freepascal.org/pub/fpc/docs-pdf/user.pdf FreePascal User's Manual]:
  
 
h2pas attempts to convert a C header file to a pascal unit. It can handle most C constructs that  
 
h2pas attempts to convert a C header file to a pascal unit. It can handle most C constructs that  
one finds in a C header file, and attempts to translate them to their pascal counterparts. see below
+
one finds in a C header file, and attempts to translate them to their Pascal counterparts. See the documentation for a full description of what the translator can handle. The unit with Pascal declarations can then be used to access code written in C.  
(constructs) for a full description of what the translator can handle. The unit with pascal declarations  
 
can then be used to access code written in C.  
 
  
 
The output of the h2pas program is written to a file with the same name as the C header file that was  
 
The output of the h2pas program is written to a file with the same name as the C header file that was  
Line 12: Line 10:
 
number of ways by means of many options.
 
number of ways by means of many options.
  
There is a GUI for h2pas called h2paswizard.
+
There is a GUI for h2pas called [[H2Paswizard]].
  
 
==See also==
 
==See also==
  
* [[Creating bindings for C libraries]].
+
*[[H2Paswizard]]
 +
*[[Creating bindings for C libraries]].
 +
 
 +
 
 +
[[Category:FPC]]
 +
[[Category:Utilities]]

Revision as of 13:10, 31 January 2016

English (en) français (fr) русский (ru) 中文(中国大陆)‎ (zh_CN)

Adapted from FreePascal User's Manual:

h2pas attempts to convert a C header file to a pascal unit. It can handle most C constructs that one finds in a C header file, and attempts to translate them to their Pascal counterparts. See the documentation for a full description of what the translator can handle. The unit with Pascal declarations can then be used to access code written in C.

The output of the h2pas program is written to a file with the same name as the C header file that was used as input, but with the extension .pp. The output file that h2pas creates can be customized in a number of ways by means of many options.

There is a GUI for h2pas called H2Paswizard.

See also