home *** CD-ROM | disk | FTP | other *** search
Turbo C Context File | 1992-05-12 | 3.6 KB | 94 lines |
- Turbo C Context File
- ..\..\V1\CPP\CMEMLIB.CPP
- WFL.CPP
- ..\..\V1\CPP\CMEMLIB.CPP
- WFL.CPP
- C:\TC\EXAMPLES\*.C
- C:\TC\CLASSLIB\SOURCE\*.C
- C:\HPP\CMEMLIB.HPP
- C:\CPP\CMEMLIB.CPP
- C:\TC\CLASSLIB\SOURCE\*.CPP
- C:\CPP\*.HPP
- C:\CPP\*.CPP
- \ALGORITH\V1\CPP\CMEMLIB.CPP
- C:\CPP\*.H
- \ALGORITH\V1\CPP\CMEMLIB.H
- pstHeapData
- psHeapData
- ~TREE
- ppclProfile
- GetNext
- GetPrev
- GetCur
- CMEMLIB.CPP
- MEM_TEST.C
- WFL.CPP
- \ALGORITH\V1\CPP\CMEMLIB.CPP
- C:\ALGORITH\V1\CPP\CMEMLIB.CPP
- C:\ALGORITH\V1\CPP\CMEMLIB.H
- C:\ALGORITH\V2\CPP\WFL.CPP
- // Since we are keeping application away from internals, we will provide
- // a way for application to set multiple 'markers' in the list to jump
- // around
- struct TRACK_S
- {
- LLIST_P pstNode;
- SHORT sState;
- };
- typedef struct TRACK_S TRACK_T;
- typedef TRACK_S * TRACK_P;
- TRACK_S pstTrack;
- SHORT sTrackSize;
- const SHORT TRACK_AVAIL = 0;
- const SHORT TRACK_USED = 1;
- ////////////////////////////////////////////////////////////////////////
- // Function Name: FindFirst
- // Class: LLIST_C
- // Security: Public
- // Description: Returns data/address of first member pointed to in
- // list.
- // Parameters
- // In: SAME
- // Out: PPVOID = Address of first item tracked or NULL
- // Return Codes: SHORT = C_OK = Item returned
- // = C_NOTOK = No data found
- // Written by: John Tal
- // Modification History:
- // Date Engineer Mod # Modification Description
- // 23-May-1991 Tal v 1.0-001 Initial conversion to C++
- ////////////////////////////////////////////////////////////////////////
- SHORT LLIST_C::FindFirst(PPVOID ppvVoid)
- C_DEF_MODULE("LLIST_C::FindFirst")
- (*ppvVoid) = NULL;
- if(pstHead != NULL)
- (*ppvVoid) = (PVOID) pstHead -> pvData;
- pstCurNode = pstHead;
- else
- C_SET_STATUS(C_NOTOK)
- C_RETURN
- ////////////////////////////////////////////////////////////////////////
- // Function Name: GetNext
- // Class: LLIST_C
- // Security: Public
- // Description: Returns data/address of next member pointed to in
- // list.
- // Parameters
- // In: SAME
- // Out: PPVOID = Address of next item tracked or NULL
- // Return Codes: SHORT = C_OK = Item returned
- // = C_NOTOK = No data found
- // Written by: John Tal
- // Modification History:
- // Date Engineer Mod # Modification Description
- // 23-May-1991 Tal v 1.0-001 Initial conversion to C++
- ////////////////////////////////////////////////////////////////////////
- SHORT LLIST_C::GetNext(PPVOID ppvVoid)
- C_DEF_MODULE("LLIST_C::GetNext")
- (*ppvVoid) = NULL;
- if(pstCurNode != NULL)
- pstCurNode = pstCurNode -> pstNext;
- (*ppvVoid) = pstCurNode;
- else
- C_SET_STATUS(C_NOTOK)
- C_RETURN
-