1
This commit is contained in:
parent
2a26b63c85
commit
190668be5f
@ -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{} {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user