|
@@ -191,8 +191,6 @@ function StrPas(C: PChar): string;
|
|
|
function MemToStr(var B; Count: byte): string;
|
|
|
procedure StrToMem(S: string; var B);
|
|
|
|
|
|
-procedure GiveUpTimeSlice;
|
|
|
-
|
|
|
const LastStrToIntResult : integer = 0;
|
|
|
LastHexToIntResult : integer = 0;
|
|
|
LastStrToCardResult : integer = 0;
|
|
@@ -1320,52 +1318,6 @@ begin
|
|
|
CopyFile:=OK;
|
|
|
end;
|
|
|
|
|
|
-procedure GiveUpTimeSlice;
|
|
|
-{$ifdef GO32V2}{$define DOS}{$endif}
|
|
|
-{$ifdef TP}{$define DOS}{$endif}
|
|
|
-{$ifdef DOS}
|
|
|
-var r: registers;
|
|
|
-begin
|
|
|
- Intr ($28, R); (* This is supported everywhere. *)
|
|
|
- r.ax:=$1680;
|
|
|
- intr($2f,r);
|
|
|
-end;
|
|
|
-{$endif}
|
|
|
-{$ifdef Unix}
|
|
|
- var
|
|
|
- req,rem : timespec;
|
|
|
-begin
|
|
|
- req.tv_sec:=0;
|
|
|
- req.tv_nsec:=10000000;{ 10 ms }
|
|
|
- {$ifdef ver1_0}nanosleep(req,rem){$else}fpnanosleep(@req,@rem){$endif};
|
|
|
-end;
|
|
|
-{$endif}
|
|
|
-{$IFDEF OS2}
|
|
|
-begin
|
|
|
- DosSleep (5);
|
|
|
-end;
|
|
|
-{$ENDIF}
|
|
|
-{$ifdef Windows}
|
|
|
-begin
|
|
|
- { if the return value of this call is non zero then
|
|
|
- it means that a ReadFileEx or WriteFileEx have completed
|
|
|
- unused for now ! }
|
|
|
- { wait for 10 ms }
|
|
|
- if SleepEx(10,true)=WAIT_IO_COMPLETION then
|
|
|
- begin
|
|
|
- { here we should handle the completion of the routines
|
|
|
- if we use them }
|
|
|
- end;
|
|
|
-end;
|
|
|
-{$endif}
|
|
|
-{$undef DOS}
|
|
|
-{$ifdef netwlibc} {$define netware} {$endif}
|
|
|
-{$ifdef netware}
|
|
|
-begin
|
|
|
- Delay (10);
|
|
|
-end;
|
|
|
-{$endif}
|
|
|
-
|
|
|
procedure RegisterWUtils;
|
|
|
begin
|
|
|
{$ifndef NOOBJREG}
|