scn - Single Linked Cell Node
Module Description
The scn module implements a node in the single linked list [scl].
Module Words
Node structure
scn%
( -- n )
Get the required space for a scn node
Node creation, initialisation and destruction
scn-init
( x scn -- )
Initialise the node with cell data x
scn-new
( x -- scn )
Create a new node on the heap with cell data x
scn-free
( scn -- )
Free the node from the heap
Members words
scn-cell@
( scn -- x )
Get the cell data x from the node
scn-cell!
( x scn -- )
Set the cell data x in the node
Inspection
scn-dump
( scn -- )
Dump the node
generated 10-Apr-2008 by
ofcfrth-0.5.0