snn - Generic Single Linked List Node
Module Description
The snn module implements a node in a generic single linked list [snl].
Module Words
Node structure
snn%
( - n )
Get the required space for a snn node
Node creation, initialisation and destruction
snn-init
( snn -- )
Initialise the node
snn-new
( -- snn )
Create a new node on the heap
snn-free
( snn -- )
Free the node from the heap
Member words
snn-next@
( snn1 -- snn2 )
Get the next node snn2 from the node snn1
snn-next!
( snn1 snn2 -- )
Set for the node snn1 the next node to snn2
Inspection
snn-dump
( snn -- )
Dump the single list node
generated 10-Apr-2008 by
ofcfrth-0.5.0