+ Now uses PathSeparator and DirectorySeparator

This commit is contained in:
michael 2002-01-22 08:31:13 +00:00
parent 4029ec8a3a
commit cbede72cd0

View File

@ -5,16 +5,16 @@ uses
const
fname = 'Makefile';
ThisDir = '.'+DirectorySeparator;
var
fn : string;
begin
fn:=FileSearch(fname,';');
fn:=FileSearch(fname,PathSeparator);
writeln('found: ',fn);
if fn<>fname then
halt(1);
fn:=FileSearch('./'+fname,';');
fn:=FileSearch(ThisDir+fname,PathSeparator);
writeln('found: ',fn);
if fn<>'./'+fname then
if fn<>'.'+fname then
halt(1);
end.