X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/5ba06ea7bd30494fe55f81a3bc07c8d1eb3702e0..3f8290b4a13c15cf62776aa427f62a8ae77ee07c:/blinklist.pas?ds=inline diff --git a/blinklist.pas b/blinklist.pas old mode 100755 new mode 100644 index 7391bdf..ca05847 --- a/blinklist.pas +++ b/blinklist.pas @@ -1,10 +1,9 @@ - { Copyright (C) 2005 Bas Steendijk For conditions of distribution and use, see copyright notice in zlib_license.txt - which is included in the package - ----------------------------------------------------------------------------- } - + which is included in the package + ----------------------------------------------------------------------------- } unit blinklist; + {$ifdef fpc} {$mode delphi} {$endif} @@ -32,11 +31,11 @@ type end; tstringlinklist=class(tlinklist) - s:string; + s:ansistring; end; tthing=class(tlinklist) - name:string; {name/nick} + name:ansistring; {name/nick} hashname:integer; {hash of name} end; @@ -82,7 +81,7 @@ procedure linklist2add(var baseptr,newptr:tlinklist2); var p:tlinklist2; begin - if (newptr=baseptr) or assigned(newptr.prev) then raise exception.create('linklist2 double insertion detected'); + if (newptr=baseptr) or assigned(newptr.prev2) then raise exception.create('linklist2 double insertion detected'); p := baseptr; baseptr := newptr; baseptr.prev2 := nil;