home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / E / TFF-A32R.LZX / AmigaE3.2a / Src / Tools / Constructors / constructors.doc next >
Encoding:
Text File  |  1992-09-02  |  496 b   |  19 lines

  1. constructors.m
  2.  
  3. This module conatins various constructor functions for common
  4. data structures.
  5.  
  6.     lh:=newlist(lh=NIL:PTR TO lh,type=0)
  7.  
  8. initialises a an exec list header for you. if lh=NIL, it will allocate
  9. a the header for you, otherwise it will use the pointer.
  10. raises: "MEM" (only if lh=NIL)
  11. example: mylist:=newlist()
  12.  
  13.     ln:=newnode(ln=NIL:PTR TO ln,name=NIL,type=0,pri=0)
  14.  
  15. like newlist, newnode will allocate a node for you if ln=NIL.
  16. raises: "MEM" (only if ln=NIL)
  17. example: newnode(n,'bla')
  18.  
  19.