Page 1 of 1

C to PureBasic Converter (?)

Posted: Sun Jul 18, 2021 4:49 pm
by AZJIO
In order to write a plugin (Geany, AkelPad), I need to convert a lot of structures (*.h).
Is there a way to automate this?

Re: C to PureBasic Converter (?)

Posted: Sun Jul 18, 2021 6:03 pm
by skywalk
World be nice. I wrote one many years ago, but not near my computer. I remember it was highly customized for C macros and various flavors of C struct definitions with tags. It got me close to 90% PB, and then just had to tweak the PB errors.

Re: C to PureBasic Converter (?)

Posted: Mon Jul 19, 2021 3:29 pm
by percy_b
There was an old project from about 12 years ago that converted C headers to VB. I think this was the link (below):

https://www.codebus.net/d-31pb.html

You could convert this to PB and use to build PB headers and declarations.