mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 07:59:27 +02:00
+ merged fixes from Peter
This commit is contained in:
parent
c5c4573cde
commit
fb6d6792f3
@ -85,19 +85,12 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
const
|
||||
{$IFDEF LINUX}
|
||||
PathCh='/';
|
||||
{$ELSE}
|
||||
PathCh='\';
|
||||
{$ENDIF}
|
||||
|
||||
Function SplitPath(Const HStr:String):String;
|
||||
var
|
||||
i : byte;
|
||||
i : longint;
|
||||
begin
|
||||
i:=Length(Hstr);
|
||||
while (i>0) and (Hstr[i]<>PathCh) do
|
||||
while (i>0) and not(Hstr[i] in ['\','/']) do
|
||||
dec(i);
|
||||
SplitPath:=Copy(Hstr,1,i);
|
||||
end;
|
||||
@ -260,7 +253,13 @@ begin
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.1 2000-07-13 10:16:22 michael
|
||||
Revision 1.2 2000-11-06 13:16:19 michael
|
||||
+ merged fixes from Peter
|
||||
|
||||
Revision 1.1.2.1 2000/11/06 13:14:48 michael
|
||||
+ Fixes from Peter for slashes in filenames
|
||||
|
||||
Revision 1.1 2000/07/13 10:16:22 michael
|
||||
+ Initial import
|
||||
|
||||
Revision 1.4 2000/07/04 19:05:54 peter
|
||||
|
Loading…
Reference in New Issue
Block a user