mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 14:40:25 +02:00
* Remove duplicate ibextraheader handling.
* Move SymAnsiStr boolean setting inside parseextraheader function. * Only accept same CurrentPPULongVersion in parseextraheader function. git-svn-id: trunk@43672 -
This commit is contained in:
parent
f62fd437b1
commit
8c2aa32683
@ -4709,15 +4709,6 @@ begin
|
|||||||
b:=readentry;
|
b:=readentry;
|
||||||
case b of
|
case b of
|
||||||
|
|
||||||
ibextraheader:
|
|
||||||
begin
|
|
||||||
CurUnit.LongVersion:=cardinal(getlongint);
|
|
||||||
Writeln(['LongVersion: ',CurUnit.LongVersion]);
|
|
||||||
getset(tppuset4(CurUnit.ModuleFlags));
|
|
||||||
if mf_symansistr in CurUnit.ModuleFlags then
|
|
||||||
SymAnsiStr:=true;
|
|
||||||
end;
|
|
||||||
|
|
||||||
ibmodulename :
|
ibmodulename :
|
||||||
begin
|
begin
|
||||||
CurUnit.Name:=getstring;
|
CurUnit.Name:=getstring;
|
||||||
@ -4908,7 +4899,9 @@ begin
|
|||||||
CurUnit.LongVersion:=cardinal(ppufile.getlongint);
|
CurUnit.LongVersion:=cardinal(ppufile.getlongint);
|
||||||
Writeln(['LongVersion: ',CurUnit.LongVersion]);
|
Writeln(['LongVersion: ',CurUnit.LongVersion]);
|
||||||
ppufile.getset(tppuset4(CurUnit.ModuleFlags));
|
ppufile.getset(tppuset4(CurUnit.ModuleFlags));
|
||||||
result:=ppufile.EndOfEntry;
|
result:=ppufile.EndOfEntry and (CurUnit.LongVersion=CurrentPPULongVersion);
|
||||||
|
if mf_symansistr in CurUnit.ModuleFlags then
|
||||||
|
SymAnsiStr:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure dofile (filename : string);
|
procedure dofile (filename : string);
|
||||||
|
Loading…
Reference in New Issue
Block a user