C to PureBasic Converter (?)

Just starting out? Need help? Post your questions and find answers here.
AZJIO
Addict
Addict
Posts: 1360
Joined: Sun May 14, 2017 1:48 am

C to PureBasic Converter (?)

Post 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?
User avatar
skywalk
Addict
Addict
Posts: 3997
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: C to PureBasic Converter (?)

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
percy_b
User
User
Posts: 72
Joined: Mon Jan 12, 2015 10:25 am

Re: C to PureBasic Converter (?)

Post 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.
Post Reply