mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 11:09:19 +02:00
* Fix compilation
git-svn-id: trunk@35359 -
This commit is contained in:
parent
a809705fb8
commit
892b616adf
@ -544,9 +544,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
lifl:=TPasImplForLoop(lsmt);
|
lifl:=TPasImplForLoop(lsmt);
|
||||||
//TODO variable
|
//TODO variable
|
||||||
write(s1,'for ',lifl.VariableName,':= ',lifl.StartValue,' ');
|
write(s1,'for ',lifl.Variable.Name,':= ',lifl.StartExpr.GetDeclaration(True),' ');
|
||||||
if lifl.Down then write('down');
|
if lifl.Down then write('down');
|
||||||
writeln('to ',lifl.EndValue,' do');
|
writeln('to ',lifl.EndExpr.GetDeclaration(True),' do');
|
||||||
GetTPasImplBlock(TPasImplBlock(lifl),lindent+1,0,false,false);
|
GetTPasImplBlock(TPasImplBlock(lifl),lindent+1,0,false,false);
|
||||||
DoSem:=false;
|
DoSem:=false;
|
||||||
end
|
end
|
||||||
@ -1147,8 +1147,8 @@ procedure GetTypes(pe:TPasElement; lindent:integer);
|
|||||||
Result:=true;
|
Result:=true;
|
||||||
writeln(';');
|
writeln(';');
|
||||||
write(s,'case ');
|
write(s,'case ');
|
||||||
if prct.VariantName <>'' then write(prct.VariantName,'=');
|
if prct.VariantEl.GetDeclaration(True) <>'' then write(prct.VariantEl.GetDeclaration(True),'=');
|
||||||
write(TPasType(prct.VariantType).Name);
|
write(TPasType(prct.VariantEl).Name);
|
||||||
writeln(' of');
|
writeln(' of');
|
||||||
if assigned(prct.Variants)then
|
if assigned(prct.Variants)then
|
||||||
if prct.Variants.Count >0 then
|
if prct.Variants.Count >0 then
|
||||||
@ -1235,8 +1235,8 @@ procedure GetTypes(pe:TPasElement; lindent:integer);
|
|||||||
if assigned(prct.Variants) then
|
if assigned(prct.Variants) then
|
||||||
begin
|
begin
|
||||||
write(s1,'case ');
|
write(s1,'case ');
|
||||||
if prct.VariantName <>'' then write(prct.VariantName,'=');
|
if prct.VariantEl.Name <>'' then write(prct.VariantEl.Name,'=');
|
||||||
write(TPasType(prct.VariantType).Name);
|
write(TPasType(prct.VariantEl).Name);
|
||||||
writeln(' of');
|
writeln(' of');
|
||||||
if assigned(prct.Variants)then
|
if assigned(prct.Variants)then
|
||||||
if prct.Variants.Count >0 then
|
if prct.Variants.Count >0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user