Gerry Dubois wrote:
RE Translating C header files
Contact Florian Klaempfl ba2395@fen.baynet.de a C to P header conversion program does exist and is currently being inproved as part of the FPC Pascal development. Especially for the PalmPilot port which requires the conversion of all the PALM O/S C header files.
You can download a copy from
ftp://tflily.fys.kuleuven.ac.be/pub/fpc/source/
It's in rtl.zip utils/convert/h2pas
How well does it work now? Last time I checked (which was some weeks ago), it wasn't quite usable. It failed for stdio.h and other standard headers, and what it did translate was far from a verbatim translation -- ISTR that it got the types quite mixed up, and tried to translate preprocessor macros to Pascal functions -- which I think causes more problems than it solves -- and other things...
-- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan