fcl-passrc cannot handle macros
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
Like the title says, fcl-passrc doesn't expand FPC macros. I'm attaching a rather nasty testcase of macros ok_macros.pas (from PasDoc testcase), fpc can parse it but fcl-passrc doesn't. Looks like macros are just not expanded at all by current fcl-passrc.
$ fpc ok_macros.pas
$ fpc test_parser.lpr
$ ./test_parser ok_macros.pas
An unhandled exception occurred at $08093FC6 :
EParserError : Expected "unit" at token "Identifier UNIT_DECL"
For the test_parser.lpr see bugreport #16340 (closed) or the wiki: http://wiki.freepascal.org/fcl-passrc
Mantis conversion info:
- Mantis ID: 16345
- OS: Debian GNU/Linux
- OS Build: (testing)
- Platform: i386
- Version: 2.5.1
- Fixed in version: 3.0.0
- Fixed in revision: 19997 (#eb2b836b)
- Target version: 3.0.0