And a few older ones:
C to Pascal source code converter
https://github.com/DrDiettrich/CtoPasC to Pascal source code converter
WinToPas is a Delphi(7) GUI project, to create D7 units from C source files (*.c, *.h).
The C parser is almost C99 compatible, with some C11 extensions.
It requires standard header files of a compiler, Cygwin may be sufficient.
The code generator outputs D7 units, as far as Delphi syntax allows.
OpenC2Pas is a C/C++/BCB to Object Pascal (Delphi/Kylix) translator.
https://sourceforge.net/projects/c2pas/C_C++_Syntax_vs_Pascal
https://www.cs.gordon.edu/courses/cs320/handouts/C_C++_Syntax_vs_Pascal.htmlPascal to C++ converter
https://github.com/knizhnik/ptocConverter recognizes Pascal dialects which are compatible with
Turbo Pascal 4.0/5.0 and ISO Pascal standard - IEC 7185:1990(E)
(including conformant arrays).
Converter can produce both C++ and C output. Using of C++ language allows
to encapsulate some Pascal types and constructions into C++ classes.
So mapping between Pascal and C++ becomes more direct
then between Pascal and C. I use C++ templates to implement Pascal arrays
and files. Special template classes are used for conformant arrays.
C++ like streams are used to implement Pascal IO routines.
The same runtime library is used both for C and C++.
ubuntu h2pas-3.0.0.1
https://manpages.ubuntu.com/manpages/xenial/man1/h2pas-3.0.0.1.htmlh2pas 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 CONSTRUCTS
section for a full description of what the translator can handle.
PtoC
https://github.com/knizhnik/ptochttp://www.garret.ru/ptoc/Readme.htmhttp://www.garret.ru/ptoc354.ziphttp://www.garret.ru/ptoc361.ziphttp://www.garret.ru/~knizhnikThis is yet another Pascal to C/C++ converter. The primary idea of this converter is to produce readable and supportable code which preserves style of original code as far as possible.
Converter recognizes Pascal dialects which are compatible with Turbo Pascal 4.0/5.0 and ISO Pascal standard - IEC 7185:1990(E) (including conformant arrays). At this moment it was tested with Turbo Pascal, Oregon Pascal, Sun Pascal and HP Pascal.
https://www.softpedia.com/get/Programming/Other-Programming-Files/C-to-Pascal-Converter.shtmlhttps://www.softpedia.com/get/Programming/Other-Programming-Files/C-to-Pascal-Converter.shtml#downloadn order to have the C files converted to Pascal code no configurations are required, just by pressing 'Run' the process will start and go on automatically. For those who want to edit or search something inside a loaded file, this program offers some simple commands that can prove quite useful.
The application can function in two modes when performing the conversions and from the 'Project' menu you can switch between them easily. Thus, it is possible to convert one file at a time, in the so-called 'single use mode', or several at once if the 'Project Mode' is set active.
C Header Translator for Delphi
https://github.com/neslib/Chethttps://blog.grijjy.com/2018/05/29/chet-a-c-header-translator-powered-by-clang/https://blog.grijjy.com/2018/05/15/libclang-for-delphi/Translates C data types such as structs, union, enums, typedefs, procedural types and opaque types.
Translates C functions to Delphi procedures or functions.
Tries to translate #define declarations to constants where possible.
Generates a single .pas file for an entire directory of .h files. This reduces issues due to dependencies between header files.
Generates output for multiple platforms (Winsows, macOS, Linux, iOS and Android) if desired.
Customize the Clang parsing process by supplying command line arguments to the compiler.
Customize the output of some conversion operations.
Retains any Doxygen style documentation comments if desired, or converts them to XmlDoc comments or PasDoc comments.
Provides a GUI for configuring the conversion process, and allows you to save the conversion settings to a .chet project file for reuse.
Conversion Helper Package
http://rvelthuis.de/zips/convertpack.zipFor the conversion of API headers from C or C++ to Delphi
http://rvelthuis.de/programs/convertpack.htmlDr.Bob's HeadConv - C DLL Header Converter v4.20
http://www.ebob42.com/ftp/headconv.zipHeadConv has full support for functions and procedures, argument and return types (128 custom type conversions) and generates implicit Delphi import units. The expert is integrated in the Delphi IDE, making the conversion very easy as the converted file is opened up in the IDE automatically. At this time there is limited (non-complex) support for typedefs, structs, unions, enums and conditional compilations. HeadConv is not targeted to do the conversion 100% on its own, rather it will assist in converting the C DLL header files