home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / gemlib27 / taddr_h < prev    next >
Text File  |  1993-07-30  |  994b  |  22 lines

  1. /************************************************************************/
  2. /*    TADDR.H    Finds pointers to within an array of OBJECT structs.    */
  3. /*        Copyright 1985 Atari Corp.                */
  4. /*                                    */
  5. /*    WARNING: This file is not supported!                */
  6. /*         We reccomend you use the proper C construct instead.    */
  7. /************************************************************************/
  8.  
  9. #define NIL -1
  10. #define ROOT 0
  11. #define OB_NEXT(x) (tree + (x) * sizeof(OBJECT) + 0)
  12. #define OB_HEAD(x) (tree + (x) * sizeof(OBJECT) + 2)
  13. #define OB_TAIL(x) (tree + (x) * sizeof(OBJECT) + 4)
  14. #define OB_TYPE(x) (tree + (x) * sizeof(OBJECT) + 6)
  15. #define OB_FLAGS(x) (tree + (x) * sizeof(OBJECT) + 8)
  16. #define OB_STATE(x) (tree + (x) * sizeof(OBJECT) + 10)
  17. #define OB_SPEC(x) (tree + (x) * sizeof(OBJECT) + 12)
  18. #define OB_X(x) (tree + (x) * sizeof(OBJECT) + 16)
  19. #define OB_Y(x) (tree + (x) * sizeof(OBJECT) + 18)
  20. #define OB_WIDTH(x) (tree + (x) * sizeof(OBJECT) + 20)
  21. #define OB_HEIGHT(x) (tree + (x) * sizeof(OBJECT) + 22)
  22.