Another easy solution is the following:

1. Create a C project.

2. Include the file.

3. Printf all key defines.

4. Collect the numbers.

5. Stuff the number into the pascal file.

This will circumvent the macro issue.

I could probably do this myself but for today I have run out of time.

I will also check out the other guys solution which mentioned ToPas.

My solution is probably fastest, it requires a bit of copy & paste and re-creation in pascal.

It has a small drawback that the macro functionality is lost.

It does have the adventage that if ToPas doesn't work that this solution is simple and can work.

Bye,
 Skybuck.

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to