Code cleanup
This commit is contained in:
parent
1e2fb72e90
commit
92e963ce7a
|
@ -248,6 +248,7 @@ Var
|
||||||
FileBuf : Array[1..4096] of Char;
|
FileBuf : Array[1..4096] of Char;
|
||||||
Begin
|
Begin
|
||||||
Result := False;
|
Result := False;
|
||||||
|
FileMode := 66;
|
||||||
|
|
||||||
Assign (SF, Source);
|
Assign (SF, Source);
|
||||||
{$I-} Reset(SF, 1); {$I+}
|
{$I-} Reset(SF, 1); {$I+}
|
||||||
|
@ -366,7 +367,7 @@ Function JustFile (Str: String) : String;
|
||||||
Var
|
Var
|
||||||
Count : Byte;
|
Count : Byte;
|
||||||
Begin
|
Begin
|
||||||
For Count := Ord(Str[0]) DownTo 1 Do
|
For Count := Length(Str) DownTo 1 Do
|
||||||
If (Str[Count] = '/') or (Str[Count] = '\') Then Begin
|
If (Str[Count] = '/') or (Str[Count] = '\') Then Begin
|
||||||
Delete (Str, 1, Count);
|
Delete (Str, 1, Count);
|
||||||
Break;
|
Break;
|
||||||
|
|
|
@ -174,9 +174,6 @@ Begin
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TSocketClass.BufFlush;
|
Procedure TSocketClass.BufFlush;
|
||||||
Var
|
|
||||||
Count : LongInt;
|
|
||||||
Start : LongInt;
|
|
||||||
Begin
|
Begin
|
||||||
If FOutBufPos > 0 Then Begin
|
If FOutBufPos > 0 Then Begin
|
||||||
If FTelnetClient or FTelnetServer Then
|
If FTelnetClient or FTelnetServer Then
|
||||||
|
|
Loading…
Reference in New Issue