4 * Revision 1.1 2001/04/04 05:43:39 wang
5 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
7 * Revision 1.2 1999/11/26 13:13:47 bnv
8 * Changed: To use the new macros.
10 * Revision 1.1 1998/07/02 17:34:50 bnv
25 /* ----------------- CreateStack ----------------------- */
31 stck
= (DQueue
*) MALLOC(sizeof(DQueue
),"Stack");
33 DQPUSH(&StackList
,stck
);
36 /* ----------------- DeleteStack ----------------------- */
41 stck
= DQPop(&StackList
);
46 /* ----------------- Queue2Stack ----------------------- */
48 Queue2Stack( PLstr str
)
51 stck
= DQPEEK(&StackList
);
55 /* ----------------- Push2Stack ----------------------- */
57 Push2Stack( PLstr str
)
60 stck
= DQPEEK(&StackList
);
64 /* ----------------- PullFromStack ----------------------- */
69 stck
= DQPEEK(&StackList
);
70 return (PLstr
)DQPop(stck
);
73 /* ----------------- StackQueued ----------------------- */
78 stck
= DQPEEK(&StackList
);