mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-29 10:39:37 +02:00
* if an include file name ends in dot, and the file is not found, also search
for the file name without the dot. So, for example, if the code contains {$I MPAL256.} and 'MPAL256.' is not found, search also for 'MPAL256' git-svn-id: trunk@39316 -
This commit is contained in:
parent
7a6fed75a0
commit
a38e9ff12e
@ -2524,6 +2524,9 @@ type
|
||||
if (not found) then
|
||||
found:=findincludefile(path,ChangeFileExt(name,pasext),foundfile);
|
||||
end;
|
||||
{ if the name ends in dot, try without the dot }
|
||||
if (not found) and (ExtractFileExt(name)=ExtensionSeparator) and (Length(name)>=2) then
|
||||
found:=findincludefile(path,Copy(name,1,Length(name)-1),foundfile);
|
||||
if current_scanner.inputfilecount<max_include_nesting then
|
||||
begin
|
||||
inc(current_scanner.inputfilecount);
|
||||
|
Loading…
Reference in New Issue
Block a user