home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / exec / lists.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  739 b   |  42 lines

  1. #ifndef EXEC_LISTS_H
  2. #define EXEC_LISTS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef EXEC_NODES_H
  12. #include <exec/nodes.h>
  13. #endif
  14.  
  15.  
  16. struct List
  17. {
  18.   struct Node* lh_Head;
  19.   struct Node* lh_Tail;
  20.   struct Node* lh_TailPred;
  21.   UBYTE        lh_Pad[2];
  22. };
  23.  
  24.  
  25. struct MinList
  26. {
  27.   struct MinNode* mlh_Head;
  28.   struct MinNode* mlh_Tail;
  29.   struct MinNode* mlh_TailPred;
  30. };
  31.  
  32.  
  33.  
  34. #define IsListEmpty(x) \
  35.  ( ((x)->lh_TailPred) == (struct Node *)(x) )
  36.  
  37. #define IsMsgPortEmpty(x) \
  38.  ( ((x)->mp_MsgList.lh_TailPred) == (struct Node *)(&(x)->mp_MsgList) )
  39.  
  40.  
  41. #endif    /* EXEC_LISTS_H */
  42.