X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/954f0e552e0d08f00fe962dd3bc9c1a324841aa2..1a863b8d4ef10ffb7424401ef65a39e3090f41a9:/binipstuff.pas?ds=inline diff --git a/binipstuff.pas b/binipstuff.pas index 94a0c03..0b9fcb8 100644 --- a/binipstuff.pas +++ b/binipstuff.pas @@ -4,6 +4,10 @@ ----------------------------------------------------------------------------- } unit binipstuff; +{$ifdef fpc} +{$mode delphi} +{$endif} + interface {$include lcoreconfig.inc} @@ -14,11 +18,8 @@ uses {$endif} pgtypes; -{$ifdef fpc} - {$mode delphi} -{$endif} -{$ifdef cpu386}{$define i386}{$endif} -{$ifdef i386}{$define ENDIAN_LITTLE}{$endif} + +{$include pgtypes.inc} {$include uint32.inc} @@ -384,6 +385,13 @@ begin end; end; end; + + {run length atleast 2 0 words} + if (runlength = 1) then begin + runlength := 0; + runbegin := 0; + end; + result := ''; for a := 0 to runbegin-1 do begin if (a <> 0) then result := result + ':';