home *** CD-ROM | disk | FTP | other *** search
- constructors.m
-
- This module conatins various constructor functions for common
- data structures.
-
- lh:=newlist(lh=NIL:PTR TO lh,type=0)
-
- initialises a an exec list header for you. if lh=NIL, it will allocate
- a the header for you, otherwise it will use the pointer.
- raises: "MEM" (only if lh=NIL)
- example: mylist:=newlist()
-
- ln:=newnode(ln=NIL:PTR TO ln,name=NIL,type=0,pri=0)
-
- like newlist, newnode will allocate a node for you if ln=NIL.
- raises: "MEM" (only if ln=NIL)
- example: newnode(n,'bla')
-
-