EditorMacroScript: Workaround for Mac, prevent using edx in result for TPoint

git-svn-id: trunk@39406 -
This commit is contained in:
martin 2012-11-28 23:00:54 +00:00
parent 5c8670cd8a
commit 25da242bb8
2 changed files with 1 additions and 3 deletions

View File

@ -78,7 +78,7 @@ procedure CompRegisterBasics(AComp: TPSPascalCompiler);
end;
begin
AComp.AddTypeS('TPoint', 'record x,y' {$IFDEF darwin} +',a,b,c'{$ENDIF} + ': Longint; end;');
AComp.AddTypeS('TPoint', 'record x,y: Longint; end;');
AComp.AddDelphiFunction(DeclPoint);
AddConst('mrNone', 'Integer', mrNone);

View File

@ -65,12 +65,10 @@ begin
FTestSyn := TSynEdit.Create(nil);
FTestMacro := TEMSEditorMacro.Create(nil);
try
{$IFnDEF darwin}
DoTestSimple('SizeOf(TPoint)', '',
'var p: TPoint; begin if SizeOf(p) = ' +IntToStr(SizeOf(TPoint)) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd); end.',
'Y'
);
{$ENDIF}
DoTestSimple('mrNone', '',
'if mrNone = ' +IntToStr(mrNone) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd);',