]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/h/sintstack.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Other / Maintained / Tools / Pccts / sorcerer / h / sintstack.h
1 #ifndef SINTSTACK_H
2 #define SINTSTACK_H
3
4 /*
5 * SIntStack.h
6 *
7 * SOFTWARE RIGHTS
8 *
9 * We reserve no LEGAL rights to SORCERER -- SORCERER is in the public
10 * domain. An individual or company may do whatever they wish with
11 * source code distributed with SORCERER or the code generated by
12 * SORCERER, including the incorporation of SORCERER, or its output, into
13 * commerical software.
14 *
15 * We encourage users to develop software with SORCERER. However, we do
16 * ask that credit is given to us for developing SORCERER. By "credit",
17 * we mean that if you incorporate our source code into one of your
18 * programs (commercial product, research project, or otherwise) that you
19 * acknowledge this fact somewhere in the documentation, research report,
20 * etc... If you like SORCERER and have developed a nice tool with the
21 * output, please mention that you developed it using SORCERER. In
22 * addition, we ask that this header remain intact in our source code.
23 * As long as these guidelines are kept, we expect to continue enhancing
24 * this system and expect to make other tools available as they are
25 * completed.
26 *
27 * SORCERER 1.00B
28 * Terence Parr
29 * AHPCRC, University of Minnesota
30 * 1992-1994
31 */
32
33 #include "sorcerer.h"
34
35 typedef struct _istack {
36 int *data;
37 int sp;
38 int size;
39 } SIntStack;
40
41 #ifdef __USE_PROTOS
42 extern SIntStack *sint_newstack(int size);
43 extern void sint_freestack(SIntStack *st);
44 extern void sint_push(SIntStack *st, int i);
45 extern int sint_pop(SIntStack *st);
46 extern int sint_stacksize(SIntStack *st);
47 extern void sint_stackreset(SIntStack *st);
48 extern int sint_stackempty(SIntStack *st);
49 extern int sint_top(SIntStack *st);
50 #else
51 extern SIntStack *sint_newstack();
52 extern void sint_freestack();
53 extern void sint_push();
54 extern int sint_pop();
55 extern int sint_stacksize();
56 extern void sint_stackreset();
57 extern int sint_stackempty();
58 extern int sint_top();
59 #endif
60
61 #endif