lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace obsolete/broken lcoregtklaz with new lcorelazarus
[lcore.git]
/
ltimevalstuff.pas
diff --git
a/ltimevalstuff.pas
b/ltimevalstuff.pas
old mode 100755
(executable)
new mode 100644
(file)
index
93f84bb
..
7054ea9
--- a/
ltimevalstuff.pas
+++ b/
ltimevalstuff.pas
@@
-10,7
+10,7
@@
unit ltimevalstuff;
\r
interface
\r
\r
unit ltimevalstuff;
\r
interface
\r
\r
-{$ifdef
win32
}
\r
+{$ifdef
mswindows
}
\r
type
\r
ttimeval = record
\r
tv_sec : longint;
\r
type
\r
ttimeval = record
\r
tv_sec : longint;
\r
@@
-27,7
+27,7
@@
interface
\r
procedure tv_add(var tv:ttimeval;msec:integer);
\r
function tv_compare(const tv1,tv2:ttimeval):boolean;
\r
\r
procedure tv_add(var tv:ttimeval;msec:integer);
\r
function tv_compare(const tv1,tv2:ttimeval):boolean;
\r
-procedure tv_sub
s
tract(var tv:ttimeval;const tv2:ttimeval);
\r
+procedure tv_subtract(var tv:ttimeval;const tv2:ttimeval);
\r
procedure msectotimeval(var tv:ttimeval;msec:integer);
\r
\r
//tv_invalidtimebig will always compare as greater than any valid timeval
\r
procedure msectotimeval(var tv:ttimeval;msec:integer);
\r
\r
//tv_invalidtimebig will always compare as greater than any valid timeval
\r
@@
-59,7
+59,7
@@
begin
end else result := tv1.tv_sec > tv2.tv_sec;
\r
end;
\r
\r
end else result := tv1.tv_sec > tv2.tv_sec;
\r
end;
\r
\r
-procedure tv_sub
s
tract(var tv:ttimeval;const tv2:ttimeval);
\r
+procedure tv_subtract(var tv:ttimeval;const tv2:ttimeval);
\r
begin
\r
dec(tv.tv_usec,tv2.tv_usec);
\r
if tv.tv_usec < 0 then begin
\r
begin
\r
dec(tv.tv_usec,tv2.tv_usec);
\r
if tv.tv_usec < 0 then begin
\r