This commit is contained in:
aozhiwei 2020-10-26 12:58:22 +08:00
parent 2a26b63c85
commit 190668be5f

View File

@ -19,10 +19,12 @@ func (this *ListHead) Del() {
func (this *ListHead) AddTail(pnew *ListHead) { func (this *ListHead) AddTail(pnew *ListHead) {
prev := this.prev prev := this.prev
prev.next = pnew next := this
this.prev = pnew
pnew.next = this next.prev = pnew
pnew.next = next
pnew.prev = prev pnew.prev = prev
prev.next = pnew
} }
func (this *ListHead) FirstEntry() interface{} { func (this *ListHead) FirstEntry() interface{} {