home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / exec / lists.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  754 b   |  45 lines

  1. #ifndef EXEC_LISTS_H
  2. #define EXEC_LISTS_H
  3. /*
  4. ** $Filename: exec/lists.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.10 $
  7. ** $Date: 91/03/15 $
  8. **
  9. ** Definitions and macros for use with Exec lists
  10. **
  11. ** (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_NODES_H
  16. #include "exec/nodes.h"
  17. #endif 
  18.  
  19.  
  20. struct List {
  21.  struct Node *lh_Head;
  22.  struct Node *lh_Tail;
  23.  struct Node *lh_TailPred;
  24.  UBYTE lh_Type;
  25.  UBYTE l_pad;
  26. }; 
  27.  
  28.  
  29. struct MinList {
  30.  struct MinNode *mlh_Head;
  31.  struct MinNode *mlh_Tail;
  32.  struct MinNode *mlh_TailPred;
  33. }; 
  34.  
  35.  
  36.  
  37. #define IsListEmpty(x) \
  38.  ( ((x)->lh_TailPred) == (struct Node *)(x) )
  39.  
  40. #define IsMsgPortEmpty(x) \
  41.  ( ((x)->mp_MsgList.lh_TailPred) == (struct Node *)(&(x)->mp_MsgList) )
  42.  
  43.  
  44. #endif 
  45.