diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/oleutest/oletest/stack.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/oleutest/oletest/stack.h')
-rw-r--r-- | private/oleutest/oletest/stack.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/private/oleutest/oletest/stack.h b/private/oleutest/oletest/stack.h new file mode 100644 index 000000000..9b7a81753 --- /dev/null +++ b/private/oleutest/oletest/stack.h @@ -0,0 +1,61 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992 - 1993. +// +// File: stack.h +// +// Contents: The class declaration of the task stack. +// +// Classes: TaskStack +// +// History: dd-mmm-yy Author Comment +// 06-Feb-93 alexgo author +// +//-------------------------------------------------------------------------- + +#ifndef _STACK_H +#define _STACK_H + +typedef struct TaskNode +{ + TaskItem ti; + struct TaskNode *pNext; +} TaskNode; + +//+------------------------------------------------------------------------- +// +// Class: TaskStack +// +// Purpose: Stores the task list of tests to be run. +// +// History: dd-mmm-yy Author Comment +// 06-Feb-93 alexgo author +// +// Notes: TaskItems are passed in and returned from methods +// as structure copies. This is done to simply memory +// management (since the overriding design goal of the +// driver app is simplicity over efficiency). +// +//-------------------------------------------------------------------------- + +class TaskStack +{ +public: + TaskStack( void ); //constructor + + void AddToEnd( void (*)(void *), void *); + void AddToEnd( const TaskItem *); + void Empty(void); + BOOL IsEmpty(void); + void Pop( TaskItem * ); + void PopAndExecute( TaskItem * ); + void Push( void (*)(void *), void *); + void Push( const TaskItem *); + + +private: + TaskNode *m_pNodes; +}; + +#endif //!_STACK_H |