]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | #ifndef SSTACK_H\r |
2 | #define SSTACK_H\r | |
3 | \r | |
4 | /*\r | |
5 | * SStack.h\r | |
6 | *\r | |
7 | * SOFTWARE RIGHTS\r | |
8 | *\r | |
9 | * We reserve no LEGAL rights to SORCERER -- SORCERER is in the public\r | |
10 | * domain. An individual or company may do whatever they wish with\r | |
11 | * source code distributed with SORCERER or the code generated by\r | |
12 | * SORCERER, including the incorporation of SORCERER, or its output, into\r | |
13 | * commerical software.\r | |
14 | *\r | |
15 | * We encourage users to develop software with SORCERER. However, we do\r | |
16 | * ask that credit is given to us for developing SORCERER. By "credit",\r | |
17 | * we mean that if you incorporate our source code into one of your\r | |
18 | * programs (commercial product, research project, or otherwise) that you\r | |
19 | * acknowledge this fact somewhere in the documentation, research report,\r | |
20 | * etc... If you like SORCERER and have developed a nice tool with the\r | |
21 | * output, please mention that you developed it using SORCERER. In\r | |
22 | * addition, we ask that this header remain intact in our source code.\r | |
23 | * As long as these guidelines are kept, we expect to continue enhancing\r | |
24 | * this system and expect to make other tools available as they are\r | |
25 | * completed.\r | |
26 | *\r | |
27 | * SORCERER 1.00B\r | |
28 | * Terence Parr\r | |
29 | * AHPCRC, University of Minnesota\r | |
30 | * 1992-1994\r | |
31 | */\r | |
32 | #include "sorlist.h"\r | |
33 | \r | |
34 | typedef SList SStack;\r | |
35 | \r | |
36 | #define newSStack (SStack *) calloc(1, sizeof(SStack));\r | |
37 | \r | |
38 | #ifdef __USE_PROTOS\r | |
39 | extern void sstack_push( SStack **st, void *e );\r | |
40 | extern void *sstack_pop( SStack **st );\r | |
41 | #else\r | |
42 | extern void sstack_push();\r | |
43 | extern void *sstack_pop();\r | |
44 | #endif\r | |
45 | \r | |
46 | #endif\r |