summaryrefslogtreecommitdiffstats
path: root/private/oleutest/oletest/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'private/oleutest/oletest/stack.h')
-rw-r--r--private/oleutest/oletest/stack.h61
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