From: plugwash Date: Thu, 18 Jun 2009 00:46:24 +0000 (+0000) Subject: fix some line ending issues X-Git-Url: http://www.lcore.org/git/lcore.git/commitdiff_plain/68a9dbf11abd9f30877e7ceda480a795fdebe1c8 fix some line ending issues git-svn-id: file:///svnroot/lcore/trunk@50 b1de8a11-f9be-4011-bde0-cc7ace90066a --- diff --git a/blinklist.pas b/blinklist.pas index 5c3391d..5ab153a 100755 --- a/blinklist.pas +++ b/blinklist.pas @@ -54,14 +54,14 @@ var linklistdebug:integer; implementation - -uses sysutils; + +uses sysutils; procedure linklistadd(var baseptr:tlinklist;newptr:tlinklist); var p:tlinklist; begin - if (newptr=baseptr) or assigned(newptr.prev) then raise exception.create('linklist double insertion detected'); + if (newptr=baseptr) or assigned(newptr.prev) then raise exception.create('linklist double insertion detected'); p := baseptr; baseptr := newptr; baseptr.prev := nil; @@ -73,8 +73,8 @@ procedure linklistdel(var baseptr:tlinklist;item:tlinklist); begin if item = baseptr then baseptr := item.next; if item.prev <> nil then item.prev.next := item.next; - if item.next <> nil then item.next.prev := item.prev; - item.prev := nil; + if item.next <> nil then item.next.prev := item.prev; + item.prev := nil; item.next := nil; end; @@ -82,7 +82,7 @@ procedure linklist2add(var baseptr,newptr:tlinklist2); var p:tlinklist2; begin - if (newptr=baseptr) or assigned(newptr.prev2) 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; @@ -94,8 +94,8 @@ procedure linklist2del(var baseptr:tlinklist2;item:tlinklist2); begin if item = baseptr then baseptr := item.next2; if item.prev2 <> nil then item.prev2.next2 := item.next2; - if item.next2 <> nil then item.next2.prev2 := item.prev2; - item.prev2 := nil; + if item.next2 <> nil then item.next2.prev2 := item.prev2; + item.prev2 := nil; item.next2 := nil; end;