mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +02:00
parent
1819f5cd3a
commit
0daa193e70
@ -1126,7 +1126,7 @@ var
|
||||
MacroID: LongInt;
|
||||
p: PChar;
|
||||
begin
|
||||
//DebugLn([' TLinkScanner.ReadNextToken SrcPos=',SrcPos,' SrcLen=',SrcLen,' "',copy(Src,SrcPos,5),'"']);
|
||||
//DebugLn([' TLinkScanner.ReadNextToken SrcPos=',SrcPos,' SrcLen=',SrcLen,' "',dbgstr(Src,SrcPos,5),'"']);
|
||||
{$IFOPT R+}{$DEFINE RangeChecking}{$ENDIF}
|
||||
{$R-}
|
||||
if (SrcPos>SrcLen) and ReturnFromIncludeFileAndIsEnd then exit;
|
||||
@ -1141,7 +1141,8 @@ begin
|
||||
if (SrcPos>SrcLen) then begin
|
||||
if ReturnFromIncludeFileAndIsEnd then exit;
|
||||
if (SrcPos>SrcLen) then break;
|
||||
end;
|
||||
end else
|
||||
inc(SrcPos);
|
||||
p:=@Src[SrcPos];
|
||||
end;
|
||||
'{' :
|
||||
@ -1421,6 +1422,7 @@ begin
|
||||
LastProgressPos:=CopiedSrcPos;
|
||||
DoCheckAbort;
|
||||
end;
|
||||
//debugln(['TLinkScanner.Scan Token ',dbgstr(Src,TokenStart,SrcPos-TokenStart)]);
|
||||
ReadNextToken;
|
||||
if TokenType=lsttWord then
|
||||
ParseKeyWord(TokenStart,SrcPos-TokenStart,LastTokenType);
|
||||
|
Loading…
Reference in New Issue
Block a user