X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/954f0e552e0d08f00fe962dd3bc9c1a324841aa2..e6290c8bee34fc9a6fdbce30a9dd85faffeaac5a:/binipstuff.pas?ds=inline diff --git a/binipstuff.pas b/binipstuff.pas index 94a0c03..1cfa34d 100644 --- a/binipstuff.pas +++ b/binipstuff.pas @@ -4,6 +4,10 @@ ----------------------------------------------------------------------------- } unit binipstuff; +{$ifdef fpc} +{$mode delphi} +{$endif} + interface {$include lcoreconfig.inc} @@ -14,9 +18,6 @@ uses {$endif} pgtypes; -{$ifdef fpc} - {$mode delphi} -{$endif} {$ifdef cpu386}{$define i386}{$endif} {$ifdef i386}{$define ENDIAN_LITTLE}{$endif} @@ -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 + ':';