home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / diverses / text_cla / wfl.dsk (.txt) < prev    next >
Encoding:
Turbo C Context File  |  1992-05-12  |  3.6 KB  |  94 lines

  1. Turbo C Context File 
  2. ..\..\V1\CPP\CMEMLIB.CPP
  3. WFL.CPP
  4. ..\..\V1\CPP\CMEMLIB.CPP
  5. WFL.CPP
  6. C:\TC\EXAMPLES\*.C
  7. C:\TC\CLASSLIB\SOURCE\*.C
  8. C:\HPP\CMEMLIB.HPP
  9. C:\CPP\CMEMLIB.CPP
  10. C:\TC\CLASSLIB\SOURCE\*.CPP
  11. C:\CPP\*.HPP
  12. C:\CPP\*.CPP
  13. \ALGORITH\V1\CPP\CMEMLIB.CPP
  14. C:\CPP\*.H
  15. \ALGORITH\V1\CPP\CMEMLIB.H
  16. pstHeapData
  17. psHeapData
  18. ~TREE
  19. ppclProfile
  20. GetNext
  21. GetPrev
  22. GetCur
  23. CMEMLIB.CPP
  24. MEM_TEST.C
  25. WFL.CPP
  26. \ALGORITH\V1\CPP\CMEMLIB.CPP
  27. C:\ALGORITH\V1\CPP\CMEMLIB.CPP
  28. C:\ALGORITH\V1\CPP\CMEMLIB.H
  29. C:\ALGORITH\V2\CPP\WFL.CPP
  30.     //  Since we are keeping application away from internals, we will provide
  31.     //  a way for application to set multiple 'markers' in the list to jump
  32.     //  around
  33.     struct TRACK_S
  34.     {
  35.        LLIST_P  pstNode;
  36.        SHORT    sState;
  37.     };
  38.     typedef struct TRACK_S TRACK_T;
  39.     typedef TRACK_S * TRACK_P;
  40.     TRACK_S  pstTrack;  
  41.     SHORT    sTrackSize;
  42.     const SHORT TRACK_AVAIL = 0;
  43.     const SHORT TRACK_USED  = 1;
  44. ////////////////////////////////////////////////////////////////////////
  45. // Function Name:   FindFirst 
  46. // Class:           LLIST_C
  47. // Security:        Public
  48. // Description:     Returns data/address of first member pointed to in 
  49. //                  list.
  50. // Parameters
  51. //    In:           SAME
  52. //    Out:          PPVOID = Address of first item tracked or NULL
  53. // Return Codes:    SHORT = C_OK = Item returned
  54. //                        = C_NOTOK = No data found
  55. // Written by:      John Tal
  56. // Modification History:
  57. //  Date         Engineer     Mod #          Modification Description
  58. //  23-May-1991  Tal          v 1.0-001      Initial conversion to C++
  59. ////////////////////////////////////////////////////////////////////////
  60. SHORT LLIST_C::FindFirst(PPVOID ppvVoid)
  61.    C_DEF_MODULE("LLIST_C::FindFirst")
  62.    (*ppvVoid) = NULL;
  63.    if(pstHead != NULL)
  64.       (*ppvVoid) = (PVOID) pstHead -> pvData;
  65.       pstCurNode = pstHead;
  66.    else
  67.       C_SET_STATUS(C_NOTOK)
  68.    C_RETURN
  69. ////////////////////////////////////////////////////////////////////////
  70. // Function Name:   GetNext
  71. // Class:           LLIST_C
  72. // Security:        Public
  73. // Description:     Returns data/address of next member pointed to in 
  74. //                  list.
  75. // Parameters
  76. //    In:           SAME
  77. //    Out:          PPVOID = Address of next item tracked or NULL
  78. // Return Codes:    SHORT = C_OK = Item returned
  79. //                        = C_NOTOK = No data found
  80. // Written by:      John Tal
  81. // Modification History:
  82. //  Date         Engineer     Mod #          Modification Description
  83. //  23-May-1991  Tal          v 1.0-001      Initial conversion to C++
  84. ////////////////////////////////////////////////////////////////////////
  85. SHORT LLIST_C::GetNext(PPVOID ppvVoid)
  86.    C_DEF_MODULE("LLIST_C::GetNext")
  87.    (*ppvVoid) = NULL;
  88.    if(pstCurNode != NULL)
  89.       pstCurNode = pstCurNode -> pstNext;
  90.       (*ppvVoid) = pstCurNode;
  91.    else
  92.       C_SET_STATUS(C_NOTOK)
  93.    C_RETURN
  94.