Preprocessor doesn't compile
Original Reporter info from Mantis: dodi
-
Reporter name: Hans-Peter Diettrich
Original Reporter info from Mantis: dodi
- Reporter name: Hans-Peter Diettrich
Description:
The preprocessor option in the compiler (-m) seems to be broken since a long time. The attached patch makes it compile and work again.
Steps to reproduce:
Add -dPreProcWrite to the compiler options,
try to build an compiler.
Additional information:
The patch upgrades the parser.preprocess() code
- from the old Objects to the current Classes,
- scanner and module initialization,
fixes TPreProcFile (missing "override" on destructor)
adds missing Get_Directive to TScannerFile
adds TDirectiveItem.kind for preprocessor (and general) use
fixes a scanner problem (#10 never occurs on Windows?)
adds a prep.lpi test project
Some more beautification may be necessary, see the notes and ToDos in the supplied code.
Mantis conversion info:
- Mantis ID: 16888
- Build: trunk
- Version: 2.5.1
- Monitored by: » dodi (Hans-Peter Diettrich)