stc - Struct module
Module Description
The stc module implements a simple struct mechanism for forth.
Module Words
Structure syntax words
struct:
( C: "name" - w 0 R: - n )
Start a named struct definition, leave the size on stack
;struct
( w n - )
End a struct definition
Field definition words
field:
( C: w n "name" - w R: w - w )
Create a named structure field, add offset to address
char:
( C: w "name" - w R: w - w )
Create a named char structure field, add offset to address
chars:
( C: w n "name" - w R: w - w )
Create named char array structure field, add offset to address
cell:
( C: w "name" - w R: w - w )
Create a named cell structure field, add offset to address
cells:
( C: w n "name" - w R: w - w )
Create named cell array structure field, add offset to address
double:
( C: w "name" - w R: w - w )
Create named double structure field, add offset to address
doubles:
( C: w n "name" - w R: w - w )
Create named double array structure field, add offset to address
float:
( C: w "name" - w R: w - w )
Create a named float structure field, add offset to address
floats:
( C: w n "name" - w R: w - w )
Create named float array structure field, add offset to address
generated 09-Jan-2007 by
ofcfrth-0.2.0