소스 검색

* replace : with ; in AddPath

git-svn-id: trunk@9161 -
peter 17 년 전
부모
커밋
af9e8b489c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      compiler/cfileutl.pas

+ 5 - 1
compiler/cfileutl.pas

@@ -930,7 +930,7 @@ implementation
    procedure TSearchPathList.AddPath(SrcPath,s:TCmdStr;addfirst:boolean);
      var
        staridx,
-       j        : longint;
+       i,j      : longint;
        prefix,
        suffix,
        CurrentDir,
@@ -970,6 +970,10 @@ implementation
         exit;
      { Support default macro's }
        DefaultReplacements(s);
+       if PathSeparator <> ';' then
+        for i:=1 to length(s) do
+         if s[i]=PathSeparator then
+          s[i]:=';';
      { get current dir }
        CurrentDir:=GetCurrentDir;
        repeat