home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / pExec / List.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  2.8 KB  |  103 lines

  1. @DATABASE "pExec/List.h"
  2. @MASTER   "Work2:AD/IInc/pExec/List.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:34:26
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "pExec/List.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"pExec/List.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_ExList" LINK "pExec/List.h/File" 50}  @{"pOS_ExNode" LINK "pExec/List.h/File" 37}  @{"pOS_List" LINK "pExec/List.h/File" 26}  @{"pOS_Node" LINK "pExec/List.h/File" 18}
  16.  
  17.  
  18. @{b}#defines@{ub}
  19.  
  20. @{"ww_InitNode()" LINK "pExec/List.h/File" 67}  @{"ww_LIST()" LINK "pExec/List.h/File" 61}
  21.  
  22. @ENDNODE
  23. @NODE File "pExec/List.h"
  24. #ifndef __INC_POS_PEXEC_LIST_H
  25. #define __INC_POS_PEXEC_LIST_H
  26. /*******************************************************************
  27.  Includes Release 24
  28.  (C) Copyright 1995-1997 proDAD
  29.      All Rights Reserved
  30.  
  31.  $AUT Holger Burkarth
  32.  $DAT >>List.h<<   12 Sep 1996    10:04:08 - (C) ProDAD
  33. *******************************************************************/
  34. #ifndef __INC_POS_PEXEC_TYPES_H
  35. #include <@{"pExec/Types.h" LINK "pExec/Types.h/File"}>
  36. #endif
  37.  
  38.  
  39. /*----------------------------------
  40. -----------------------------------*/
  41. struct pOS_Node
  42. {
  43.   struct pOS_Node* ln_Succ;
  44.   struct pOS_Node* ln_Pred;
  45. };
  46.  
  47. /*----------------------------------
  48. -----------------------------------*/
  49. struct pOS_List
  50. {
  51.   @{"struct pOS_Node" LINK File 18}* lh_Head;
  52.   @{"struct pOS_Node" LINK File 18}* lh_Tail;
  53.   @{"struct pOS_Node" LINK File 18}* lh_TailPred;
  54. };
  55.  
  56.  
  57. /*----------------------------------
  58.      Extended-Node
  59. -----------------------------------*/
  60. struct pOS_ExNode
  61. {
  62.   struct pOS_ExNode* ln_Succ;
  63.   struct pOS_ExNode* ln_Pred;
  64.   @{"UBYTE" LINK "pExec/Types.h/File" 95}              ln_Type;   /* enum pOS_ExNodeType */
  65.   @{"SBYTE" LINK "pExec/Types.h/File" 94}              ln_Pri;    /* Priority, for sorting */
  66.   const @{"CHAR" LINK "pExec/Types.h/File" 100}        *ln_Name;   /* ID string, null terminated */
  67. };
  68.  
  69.  
  70.  
  71. /*----------------------------------
  72. -----------------------------------*/
  73. struct pOS_ExList
  74. {
  75.   @{"struct pOS_ExNode" LINK File 37}* lh_Head;
  76.   @{"struct pOS_ExNode" LINK File 37}* lh_Tail;
  77.   @{"struct pOS_ExNode" LINK File 37}* lh_TailPred;
  78.   @{"UBYTE" LINK "pExec/Types.h/File" 95}              lh_Pad[2];
  79. };
  80.  
  81.  
  82. /****************** Macros *************************************/
  83. #ifdef pOS_DEBUG
  84.  #define @{"ww_LIST" LINK "File" 71}(lst) \\
  85.    ww.CheckRefPointer(#lst,(APTR)lst); \\
  86.    ww.CheckRefPointer("lh_Head",(lst)->lh_Head); \\
  87.    ww.CheckRefPointer("lh_TailPred",(lst)->lh_TailPred); \\
  88.    ww.Compare("lh_Tail",(lst)->lh_Tail!=@{"NULL" LINK "pExec/Types.h/File" 117});
  89.  
  90.  #define @{"ww_InitNode" LINK "File" 72}(nd) \\
  91.    (nd)->ln_Succ=@{"NULL" LINK "pExec/Types.h/File" 117}; (nd)->ln_Pred=@{"NULL" LINK "pExec/Types.h/File" 117};
  92.  
  93. #else
  94.  #define @{"ww_LIST" LINK "File" 61}(lst) ;
  95.  #define @{"ww_InitNode" LINK "File" 67}(nd) ;
  96. #endif
  97.  
  98.  
  99.  
  100.  
  101. #endif
  102. @ENDNODE
  103.