[Patch] Jedi Code Format: access violation when parsing not closed IFDEF.
Original Reporter info from Mantis: DomingoGP @DomingoGP
-
Reporter name: Domingo Galmés
Original Reporter info from Mantis: DomingoGP @DomingoGP
- Reporter name: Domingo Galmés
Description:
This patch solves an access violation exception when parsing not closed IFDEF preprocessor with enabled preprocessor.
Also add support for near, far and huge pointers types and segmented addresses for msdos target and
some refactoring changing
begin
result:=true;
exit;
end;
by
exit(True);.
Steps to reproduce:
//test unit with preprocessor enabled.
unit unit4;
interface
implementation
type
PNearInteger=^integer; near 'CS';
PFarInteger=^integer; far;
PHugeInteger=^integer; huge;
{$IFDEF TEST}
procedure Dummy;
begin
end;
end.
Mantis conversion info:
- Mantis ID: 38146
- Fixed in revision: r64166 (#b1afd41f)