]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/lib/sstack.c
EdkCompatibilityPkg: Remove EdkCompatibilityPkg
[mirror_edk2.git] / EdkCompatibilityPkg / Other / Maintained / Tools / Pccts / sorcerer / lib / sstack.c
diff --git a/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/lib/sstack.c b/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/lib/sstack.c
deleted file mode 100644 (file)
index c8a97b0..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*\r
- * sstack.c\r
- *\r
- * SOFTWARE RIGHTS\r
- *\r
- * We reserve no LEGAL rights to SORCERER -- SORCERER is in the public\r
- * domain.  An individual or company may do whatever they wish with\r
- * source code distributed with SORCERER or the code generated by\r
- * SORCERER, including the incorporation of SORCERER, or its output, into\r
- * commerical software.\r
- *\r
- * We encourage users to develop software with SORCERER.  However, we do\r
- * ask that credit is given to us for developing SORCERER.  By "credit",\r
- * we mean that if you incorporate our source code into one of your\r
- * programs (commercial product, research project, or otherwise) that you\r
- * acknowledge this fact somewhere in the documentation, research report,\r
- * etc...  If you like SORCERER and have developed a nice tool with the\r
- * output, please mention that you developed it using SORCERER.  In\r
- * addition, we ask that this header remain intact in our source code.\r
- * As long as these guidelines are kept, we expect to continue enhancing\r
- * this system and expect to make other tools available as they are\r
- * completed.\r
- *\r
- * SORCERER 1.00B\r
- * Terence Parr\r
- * AHPCRC, University of Minnesota\r
- * 1992-1994\r
- */\r
-\r
-#include "pcctscfg.h"\r
-#include <stdio.h>\r
-#include <setjmp.h>\r
-\r
-#ifdef PCCTS_USE_STDARG\r
-#include <stdarg.h>\r
-#else\r
-#include <varargs.h>\r
-#endif\r
-\r
-#include "CASTBase.h"\r
-#include "sstack.h"\r
-\r
-void\r
-#ifdef __USE_PROTOS\r
-sstack_push( SStack **st, void *e )\r
-#else\r
-sstack_push( st, e )\r
-SStack **st;\r
-void *e;\r
-#endif\r
-{\r
-  SStack *p;\r
-  require(e!=NULL, "sstack_push: attempting to add NULL list element");\r
-\r
-  p = newSStack;\r
-  require(p!=NULL, "sstack_push: cannot alloc new list node");\r
-  p->elem = e;\r
-  p->next = *st;\r
-  *st = p;\r
-}\r
-\r
-void *\r
-#ifdef __USE_PROTOS\r
-sstack_pop( SStack **st )\r
-#else\r
-sstack_pop( st )\r
-SStack **st;\r
-#endif\r
-{\r
-  SStack *p = *st;\r
-  void *r;\r
-\r
-  *st = (*st)->next;\r
-  r = p->elem;\r
-  free(p);\r
-  return r;\r
-}\r
-\r