From c8a81f928d7b406d02be8b7246e51f5bdd3c8886 Mon Sep 17 00:00:00 2001
From: Douglas Guptill <douglas.guptill@dal.ca>
Date: Thu, 21 May 2009 20:12:29 +0000
Subject: [PATCH] code is duplicated in stack.c

---
 NN/stack.cc | 38 --------------------------------------
 1 file changed, 38 deletions(-)
 delete mode 100644 NN/stack.cc

diff --git a/NN/stack.cc b/NN/stack.cc
deleted file mode 100644
index 30cf18a3..00000000
--- a/NN/stack.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-	static struct node
-	{ int key; struct node *next; };
-	static struct node *head, *z, *t;
-	stackinit() 
-	   {
-	     head = (struct node *) malloc(sizeof *head);
-	     z = (struct node *) malloc(sizeof *z);
-	     head->next = z; head->key=0;
-	     z->next = z;
-	     z->key = 0;
-	   }
-	push(p)
-           int *p;
-	   {
-	     int v;
-	     v = *p;
-	     t = (struct node *) malloc(sizeof *t);	
-	     t->key = v; t->next = head->next;	
-	     head->next =t;	
-	   }
-	pop(x)
-           int *x;
-	   {
-	     t = head->next; head->next = t->next;
-	     *x = t->key;
-	     free(t);
-	   }
-	stackempty(i)
-          int *i;
-	  { 
-	    *i = 0;
-            if(head->next == z) *i = 1;
-          }
-        stackflush()
-           {
-             free(head);
-             free(z);
-           }
-- 
GitLab