浏览代码

* merged fixed relative path fix

peter 24 年之前
父节点
当前提交
efa2d5f05e
共有 1 个文件被更改,包括 13 次插入3 次删除
  1. 13 3
      compiler/scanner.pas

+ 13 - 3
compiler/scanner.pas

@@ -661,8 +661,15 @@ implementation
            found:=false;
            foundfile:='';
            if path<>'' then
-             path:=path+';';
-           found:=FindFile(name+ext,path+current_scanner.inputfile.path^+';.'+DirSep,foundfile);
+             begin
+               if not path_absolute(path) then
+                 path:=current_scanner.inputfile.path^+path
+               else
+                 path:=path+';'+current_scanner.inputfile.path^;
+             end
+           else
+             path:=current_scanner.inputfile.path^;
+           found:=FindFile(name+ext,path+';.'+DirSep,foundfile);
            if (not found) then
             found:=current_module.localincludesearchpath.FindFile(name+ext,foundfile);
            if (not found) then
@@ -2592,7 +2599,10 @@ exit_label:
 end.
 {
   $Log$
-  Revision 1.19  2001-07-08 21:00:16  peter
+  Revision 1.20  2001-07-15 11:56:21  peter
+    * merged fixed relative path fix
+
+  Revision 1.19  2001/07/08 21:00:16  peter
     * various widestring updates, it works now mostly without charset
       mapping supported