File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -758,7 +758,7 @@ function TmwBasePasLex.Func43: TptTokenKind;
758758 Result := ptIdentifier;
759759 if KeyComp(' Int64' ) then FExID := ptInt64
760760 else if KeyComp(' local' ) then FExID := ptLocal
761- else if KeyComp(' align' ) then Result := ptAlign;
761+ else if KeyComp(' align' ) then FExID := ptAlign;
762762end ;
763763
764764function TmwBasePasLex.Func44 : TptTokenKind;
Original file line number Diff line number Diff line change @@ -4316,9 +4316,9 @@ procedure TmwSimplePasPar.SimpleType;
43164316
43174317procedure TmwSimplePasPar.RecordAlign ;
43184318begin
4319- if TokenID = ptAlign then
4319+ if ExID = ptAlign then
43204320 begin
4321- Expected(ptAlign) ;
4321+ NextToken ;
43224322 RecordAlignValue;
43234323 end ;
43244324end ;
Original file line number Diff line number Diff line change 1- unit managedrecords ;
1+ unit alignedrecords ;
22
33interface
44
55type
66 TMyRecord = record
77 Value : Integer;
8+ Align: string;
89 class operator Initialize (out Dest: TMyRecord);
910 class operator Finalize(var Dest: TMyRecord);
1011 end align 8 ;
@@ -22,4 +23,4 @@ implementation
2223 Log(' destroyed' + IntToHex (Integer(Pointer(@Dest))));
2324end ;
2425
25- end .
26+ end .
You can’t perform that action at this time.
0 commit comments