mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:49:20 +02:00
* generic AnsiStrComp fixed
git-svn-id: trunk@1057 -
This commit is contained in:
parent
46097d7679
commit
af3b2f28ca
@ -285,20 +285,25 @@ begin
|
|||||||
Result:=0;
|
Result:=0;
|
||||||
If S1=Nil then
|
If S1=Nil then
|
||||||
begin
|
begin
|
||||||
If S2=Nil Then Exit;
|
If S2=Nil Then Exit;
|
||||||
result:=-1;
|
result:=-1;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
If S2=Nil then
|
If S2=Nil then
|
||||||
begin
|
begin
|
||||||
Result:=1;
|
Result:=1;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
Repeat
|
Repeat
|
||||||
Result:=Ord(S1[0])-Ord(S2[0]); //!! Must be replaced by ansi characters !!
|
Result:=Ord(S1[0])-Ord(S2[0]); //!! Must be replaced by ansi characters !!
|
||||||
Inc(S1);
|
Inc(S1);
|
||||||
Inc(S2);
|
Inc(S2);
|
||||||
Until (Result<>0) or ((S1[0]=#0) or (S2[0]=#0))
|
Until (Result<>0) or (S1^=#0) or (S2^=#0);
|
||||||
|
if Result=0 then
|
||||||
|
if s1=#0 then
|
||||||
|
result:=1
|
||||||
|
else
|
||||||
|
result:=-1;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user