On 9 Mar 2005 at 4:50, Frank Heckenbach wrote:
[...]
The trouble with C to pascal parsing is that everybody tries to go for the silver bullet of 100% automatic conversion. They all fail, and nobody is interested long enough to try a second approach, something what is more a construction kit for converting headers or so, or a scriptable or assisted system.
This was my experience in porting the old gcc winapi headers to GPC (a few years ago). Dr Bob's "headconv" program gave me a good head start, but I also had to write a program to process the headconv output and clean it up a bit, after which I had to do some manual editing. It was a long, tedious process, but it did enable me to create a functional "Windows" unit.
It is clear that 100% conversion will not be possible for many C headers, and so another approach is needed (the compiler being able to compile C code? after all, we are already compiling assembler ...).
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/