From 529abe363cb5cd37f3d86d6c8e454f28aa683662 Mon Sep 17 00:00:00 2001
From: Douglas Guptill <douglas.guptill@dal.ca>
Date: Sun, 31 May 2009 18:18:45 +0000
Subject: [PATCH] add include <stdlib>

---
 NN/stack.c     | 2 ++
 NN/stackpair.c | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/NN/stack.c b/NN/stack.c
index a1120338..f761e762 100644
--- a/NN/stack.c
+++ b/NN/stack.c
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+
 	static struct node
 	{ int key; struct node *next; };
 	static struct node *head, *z, *t;
diff --git a/NN/stackpair.c b/NN/stackpair.c
index a4da6bfb..a9d83524 100644
--- a/NN/stackpair.c
+++ b/NN/stackpair.c
@@ -1,7 +1,10 @@
+#include <stdlib.h>
+
 	static struct node
 	{ int key; struct node *next; };
 	static struct node *heada, *za, *ta;
 	static struct node *headb, *zb, *tb;
+
         stackpairinit_() {stackpairinit();}
 	stackpairinit () 
 	   {
@@ -17,6 +20,7 @@
 	     zb->next = zb;
 	     zb->key = 0;
 	   }
+
         stackpairflush_() {stackpairflush();}
 	stackpairflush () 
 	   {
@@ -25,6 +29,7 @@
              free(za);
              free(zb);
 	   }
+
         pushpair_(pa, pb)  int *pa; int *pb; {pushpair(pa, pb);}
 	pushpair (pa, pb)
              int *pa;
@@ -42,6 +47,7 @@
 	     tb->key = vb; tb->next = headb->next;	
 	     headb->next =tb;	
 	   }
+
         poppair_(xa,xb)  int *xa; int *xb; {poppair(xa,xb);}
 	poppair (xa,xb)
              int *xa;
@@ -54,6 +60,7 @@
 	     *xb = tb->key;
 	     free(tb);
 	   }
+
         stackpairempty_(i) int *i; {stackpairempty(i);}
 	stackpairempty (i)
             int *i;
-- 
GitLab