]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | #ifndef SLIST_H\r |
2 | #define SLIST_H\r | |
3 | \r | |
4 | /*\r | |
5 | * SList.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 | \r | |
33 | #include "sorcerer.h"\r | |
34 | \r | |
35 | typedef struct _SList {\r | |
36 | void *elem; /* pointer to any kind of element */\r | |
37 | struct _SList *next;\r | |
38 | } SList;\r | |
39 | \r | |
40 | #define newSList (SList *) calloc(1, sizeof(SList));\r | |
41 | \r | |
42 | #ifdef __USE_PROTOS\r | |
43 | extern void *slist_iterate(SList *list, SList **);\r | |
44 | extern void slist_add( SList **list, void *e );\r | |
45 | extern void slist_free(SList *list);\r | |
46 | #else\r | |
47 | extern void *slist_iterate();\r | |
48 | extern void slist_add();\r | |
49 | extern void slist_free();\r | |
50 | #endif\r | |
51 | \r | |
52 | #endif\r |