Hello again, fellow Pascalers!
After getting a bug fix for the set addition problem from Peter (thanks very much Peter!) within 24 hours I've decided to try my luck again.
There is some strangeness with the gpc-cpp preprocessor; here is some code to trigger it:
------- main.h ---------
#ifndef Funny #define Funny 1 #endif
{**} {**}
------- end ------------
------- main.p ---------
program MxFiler;
#include "main.h"
BEGIN writeln('Hello '); END.
------- end ------------
If you do: ida % gpc -E main.p then gpc-cpp goes into a infinite loop.
Now the strange bit. If you remove any of these lines/characters the preprocessing works as expected:
1) Change #ifndef to #ifdef in main.h 2) Remove the #ifndef and #endif lines in main.h 3) Remove either of the comment lines in main.h 4) Remove the trailing '}' from the first comment line in main.h 5) Remove #include from main.p and replace it with the contents of main.h
I can easily work around this of course, but a fix would be better!
Thanks for any help!
Ian
-- Ian Thurlbeck http://www.stams.strath.ac.uk/ Statistics and Modelling Science, University of Strathclyde Livingstone Tower, 26 Richmond Street, Glasgow, UK, G1 1XH Tel: +44 (0)141 548 3667 Fax: +44 (0)141 552 2079