lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made getlocalips work on mac OS X (BSD)
[lcore.git]
/
binipstuff.pas
diff --git
a/binipstuff.pas
b/binipstuff.pas
index 94a0c03b621108e54f0516998fc08d87aa7cdb7b..1cfa34deb4f3bd92429af58aa43f6ebe119feab2 100644
(file)
--- a/
binipstuff.pas
+++ b/
binipstuff.pas
@@
-4,6
+4,10
@@
----------------------------------------------------------------------------- }
\r
unit binipstuff;
\r
\r
----------------------------------------------------------------------------- }
\r
unit binipstuff;
\r
\r
+{$ifdef fpc}
\r
+{$mode delphi}
\r
+{$endif}
\r
+
\r
interface
\r
\r
{$include lcoreconfig.inc}
\r
interface
\r
\r
{$include lcoreconfig.inc}
\r
@@
-14,9
+18,6
@@
uses
{$endif}
\r
pgtypes;
\r
\r
{$endif}
\r
pgtypes;
\r
\r
-{$ifdef fpc}
\r
- {$mode delphi}
\r
-{$endif}
\r
{$ifdef cpu386}{$define i386}{$endif}
\r
{$ifdef i386}{$define ENDIAN_LITTLE}{$endif}
\r
\r
{$ifdef cpu386}{$define i386}{$endif}
\r
{$ifdef i386}{$define ENDIAN_LITTLE}{$endif}
\r
\r
@@
-384,6
+385,13
@@
begin
end;
\r
end;
\r
end;
\r
end;
\r
end;
\r
end;
\r
+
\r
+ {run length atleast 2 0 words}
\r
+ if (runlength = 1) then begin
\r
+ runlength := 0;
\r
+ runbegin := 0;
\r
+ end;
\r
+
\r
result := '';
\r
for a := 0 to runbegin-1 do begin
\r
if (a <> 0) then result := result + ':';
\r
result := '';
\r
for a := 0 to runbegin-1 do begin
\r
if (a <> 0) then result := result + ':';
\r