mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:06:08 +02:00
AMIGA/MorphOS/AROS: corrected pathes in FP-IDE
git-svn-id: trunk@28620 -
This commit is contained in:
parent
d9e61b2e01
commit
ee31b188f6
@ -1554,7 +1554,7 @@ begin
|
|||||||
Writeln('Running "'+ProgramPath+' '+Params+'"');
|
Writeln('Running "'+ProgramPath+' '+Params+'"');
|
||||||
{ DO NOT use COMSPEC for exe files as the
|
{ DO NOT use COMSPEC for exe files as the
|
||||||
ExitCode is lost in those cases PM }
|
ExitCode is lost in those cases PM }
|
||||||
{$ifdef AROS}
|
{$ifdef HASAMIGA}
|
||||||
DosExecute(ProgramPath, Params);
|
DosExecute(ProgramPath, Params);
|
||||||
{$else}
|
{$else}
|
||||||
{$ifndef Unix}
|
{$ifndef Unix}
|
||||||
@ -1583,7 +1583,7 @@ begin
|
|||||||
InFile,OutFile,ErrFile);
|
InFile,OutFile,ErrFile);
|
||||||
end;
|
end;
|
||||||
{$endif Unix}
|
{$endif Unix}
|
||||||
{$endif AROS}
|
{$endif HASAMIGA}
|
||||||
|
|
||||||
{$ifdef Unix}
|
{$ifdef Unix}
|
||||||
if (DebuggeeTTY='') and (OutFile='') and (ExecType<>exDosShell) then
|
if (DebuggeeTTY='') and (OutFile='') and (ExecType<>exDosShell) then
|
||||||
@ -1732,7 +1732,7 @@ procedure TIDEApp.DosShell;
|
|||||||
var
|
var
|
||||||
s : string;
|
s : string;
|
||||||
begin
|
begin
|
||||||
{$ifdef AROS}
|
{$ifdef HASAMIGA}
|
||||||
s := 'C:NewShell';
|
s := 'C:NewShell';
|
||||||
{$else}
|
{$else}
|
||||||
{$ifdef Unix}
|
{$ifdef Unix}
|
||||||
|
@ -255,7 +255,11 @@ procedure InitTemplates;
|
|||||||
PT : PTemplate;
|
PT : PTemplate;
|
||||||
i : sw_integer;
|
i : sw_integer;
|
||||||
begin
|
begin
|
||||||
|
{$ifdef HASAMIGA}
|
||||||
|
if (copy(Dir,length(Dir),1)<>DirSep) and (copy(Dir,length(Dir),1)<>DriveSeparator) then Dir:=Dir+DirSep;
|
||||||
|
{$else}
|
||||||
if copy(Dir,length(Dir),1)<>DirSep then Dir:=Dir+DirSep;
|
if copy(Dir,length(Dir),1)<>DirSep then Dir:=Dir+DirSep;
|
||||||
|
{$endif}
|
||||||
FindFirst(Dir+'*'+TemplateExt,AnyFile,SR);
|
FindFirst(Dir+'*'+TemplateExt,AnyFile,SR);
|
||||||
while (DosError=0) do
|
while (DosError=0) do
|
||||||
begin
|
begin
|
||||||
|
@ -105,7 +105,11 @@ function SmartPath(Path: string): string;
|
|||||||
var S: string;
|
var S: string;
|
||||||
begin
|
begin
|
||||||
GetDir(0,S);
|
GetDir(0,S);
|
||||||
|
{$ifdef HASAMIGA}
|
||||||
|
if (copy(S,length(S),1)<>DirSep) and (copy(S,length(S),1)<>DriveSeparator) then S:=S+DirSep;
|
||||||
|
{$else}
|
||||||
if copy(S,length(S),1)<>DirSep then S:=S+DirSep;
|
if copy(S,length(S),1)<>DirSep then S:=S+DirSep;
|
||||||
|
{$endif}
|
||||||
{$ifdef FSCaseInsensitive}
|
{$ifdef FSCaseInsensitive}
|
||||||
if (LowerCaseStr(copy(Path,1,length(S)))=LowerCaseStr(S)) {and (Pos('\',copy(Path,length(S)+1,High(S)))=0)} then
|
if (LowerCaseStr(copy(Path,1,length(S)))=LowerCaseStr(S)) {and (Pos('\',copy(Path,length(S)+1,High(S)))=0)} then
|
||||||
{$else}
|
{$else}
|
||||||
|
@ -90,7 +90,7 @@ const ClipboardWindow : PClipboardWindow = nil;
|
|||||||
ShowStatusOnError: boolean = true;
|
ShowStatusOnError: boolean = true;
|
||||||
StartupDir : string = '.'+DirSep;
|
StartupDir : string = '.'+DirSep;
|
||||||
IDEDir : string = '.'+DirSep;
|
IDEDir : string = '.'+DirSep;
|
||||||
{$if defined(WINDOWS) or defined(Unix)}
|
{$if defined(WINDOWS) or defined(Unix) or defined(Aros)}
|
||||||
SystemIDEDir : string = '';
|
SystemIDEDir : string = '';
|
||||||
{$endif defined(WINDOWS) or defined(Unix)}
|
{$endif defined(WINDOWS) or defined(Unix)}
|
||||||
INIFileName : string = ININame;
|
INIFileName : string = ININame;
|
||||||
|
@ -192,7 +192,7 @@ uses
|
|||||||
{$ifdef netware_clib}
|
{$ifdef netware_clib}
|
||||||
nwserv,
|
nwserv,
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef aros}
|
{$ifdef HASAMIGA}
|
||||||
dos,
|
dos,
|
||||||
{$endif}
|
{$endif}
|
||||||
Strings,
|
Strings,
|
||||||
@ -205,7 +205,7 @@ type
|
|||||||
procedure FreeItem(Item: Pointer); virtual;
|
procedure FreeItem(Item: Pointer); virtual;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$ifdef AROS}
|
{$ifdef HASAMIGA}
|
||||||
var
|
var
|
||||||
StartupTicks: Int64;
|
StartupTicks: Int64;
|
||||||
{$endif}
|
{$endif}
|
||||||
@ -314,17 +314,7 @@ begin
|
|||||||
GetDosTicks := Nwserv.GetCurrentTicks;
|
GetDosTicks := Nwserv.GetCurrentTicks;
|
||||||
end;
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef amiga}
|
{$ifdef HASAMIGA}
|
||||||
begin
|
|
||||||
GetDosTicks := -1;
|
|
||||||
end;
|
|
||||||
{$endif}
|
|
||||||
{$ifdef morphos}
|
|
||||||
begin
|
|
||||||
GetDosTicks := -1;
|
|
||||||
end;
|
|
||||||
{$endif}
|
|
||||||
{$ifdef AROS}
|
|
||||||
begin
|
begin
|
||||||
GetDosTicks := ((dos.GetMsCount div 55) - StartupTicks) and $7FFFFFFF;
|
GetDosTicks := ((dos.GetMsCount div 55) - StartupTicks) and $7FFFFFFF;
|
||||||
end;
|
end;
|
||||||
@ -1005,7 +995,7 @@ begin
|
|||||||
Dispose(HelpFiles, Done);
|
Dispose(HelpFiles, Done);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$ifdef AROS}
|
{$ifdef HASAMIGA}
|
||||||
INITIALIZATION
|
INITIALIZATION
|
||||||
StartupTicks := dos.GetMsCount div 55;
|
StartupTicks := dos.GetMsCount div 55;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
@ -514,7 +514,11 @@ function DirOf(const S: string): string;
|
|||||||
var D: DirStr; E: ExtStr; N: NameStr;
|
var D: DirStr; E: ExtStr; N: NameStr;
|
||||||
begin
|
begin
|
||||||
FSplit(S,D,N,E);
|
FSplit(S,D,N,E);
|
||||||
if (D<>'') and (D[Length(D)]<>DirSep) then
|
if (D<>'') and (D[Length(D)]<>DirSep)
|
||||||
|
{$ifdef HASAMIGA}
|
||||||
|
and (D[Length(D)]<>DriveSeparator)
|
||||||
|
{$endif}
|
||||||
|
then
|
||||||
DirOf:=D+DirSep
|
DirOf:=D+DirSep
|
||||||
else
|
else
|
||||||
DirOf:=D;
|
DirOf:=D;
|
||||||
@ -1220,7 +1224,11 @@ function GetCurDir: string;
|
|||||||
var S: string;
|
var S: string;
|
||||||
begin
|
begin
|
||||||
GetDir(0,S);
|
GetDir(0,S);
|
||||||
|
{$ifdef HASAMIGA}
|
||||||
|
if (copy(S,length(S),1)<>DirSep) and (copy(S,length(S),1)<>DriveSeparator) then S:=S+DirSep;
|
||||||
|
{$else}
|
||||||
if copy(S,length(S),1)<>DirSep then S:=S+DirSep;
|
if copy(S,length(S),1)<>DirSep then S:=S+DirSep;
|
||||||
|
{$endif}
|
||||||
GetCurDir:=S;
|
GetCurDir:=S;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ begin
|
|||||||
l:=Length(FileName);
|
l:=Length(FileName);
|
||||||
if (l<2) then
|
if (l<2) then
|
||||||
exit;
|
exit;
|
||||||
{$IF DEFINED(AMIGA) OR DEFINED(MORPHOS)}
|
{$IFDEF HASAMIGA}
|
||||||
i:=Pos(DriveSeparator,FileName);
|
i:=Pos(DriveSeparator,FileName);
|
||||||
if (i > 0) then Result:=Copy(FileName,1,i);
|
if (i > 0) then Result:=Copy(FileName,1,i);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
{$DEFINE NO_THREADING}
|
{$DEFINE NO_THREADING}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$IFDEF AROS}
|
||||||
|
{$DEFINE NO_UNIT_PROCESS}
|
||||||
|
{$DEFINE NO_THREADING}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$IFDEF OS2}
|
{$IFDEF OS2}
|
||||||
{$DEFINE NO_UNIT_PROCESS}
|
{$DEFINE NO_UNIT_PROCESS}
|
||||||
{$ENDIF OS2}
|
{$ENDIF OS2}
|
||||||
|
Loading…
Reference in New Issue
Block a user