[fpc-devel] Patch for better Delphi-compatability in preprocessor

Christian Iversen chrivers at iversen-net.dk
Fri Feb 25 17:09:08 CET 2005


Certain Delphi constructs are not yet supported by the FreePascal 
preprocessor. Therefore, I have written a patch to implement this 
functionality, so the package Technetium can compile on FreePascal again. 

The attached patch closes both these bugs:
http://www.freepascal.org/bugs/showrec.php3?ID=3683
http://www.freepascal.org/bugs/showrec.php3?ID=3691

If you accept this patch, please give credit as something like this:
"Patch by Christian Iversen to implement symbolic constants and the IN 
operator in the preprocessor"


It seems that the real delphi uses a different approach to parsing expressions 
in the preprocessor, so eventually this patch will be replaced. However, for 
now, it helps many projects compile that otherwise wouldn't be able to. 


-- 
Regards,
Christian Iversen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preproc-ifin-and-ifconst-support.patch
Type: text/x-diff
Size: 6292 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050225/a9ca7af8/attachment.patch>


More information about the fpc-devel mailing list