Insert a node into a list
Source position: exec.pas line 1250
procedure ExecInsert( |
List: PList; |
Node: PNode; |
Pred: PNode |
); |
List |
|
A pointer to the target list |
Node |
|
Node to insert |
Pred |
|
A node of the list after the new node will be inserted |
Insert a node into a system list after a given node. Insertion at the head of a list is possible by passing a nil value for listNode, though the AddHead() function is slightly faster for that special case. The original name Insert is colliding with the RTL Insert.
WARNING
This function does not arbitrate for access to the list. The calling task must be the owner of the involved list.
|
Insert a node at the head of a list |
|
|
Append node to tail of a list |
|
|
Insert or append node to a system list |
|
|
Remove a node from a list |
|
|
Remove the head node from a list |
|
|
Remove the tail node from a list |