• Description:
    TDEF keywords allows You to define Your own types, like with C's typedef. It is a bit more limited, than it's C's equivalent, but can do the same job.

  • Syntax:
      TDEF   <name>           // the <name> is the VOID type
      TDEF   <name>:<type>    // the <name> is the <type> type
      TDEFL  <name>           // the <name> is the LONG type
      TDEFUL <name>           // the <name> is the ULONG type
      TDEFB  <name>           // the <name> is the BYTE type
      TDEFUB <name>           // the <name> is the UBYTE type
      TDEFW  <name>           // the <name> is the WORD type
      TDEFUW <name>           // the <name> is the UWORD type
      TDEFF  <name>           // the <name> is the FLOAT type
      TDEFD  <name>           // the <name> is the DOUBLE type
    



  • Example:
    If You often use the 'PTR TO RastPort' type, You can define:
      TDEF RP:PTR TO RastPort
    

    and then You can simply replace all the 'PTR TO RastPort' types by short 'RP'.