changeset 136:efe361763f81

Fixed some of the makefile stuff, fixed some stupidity in my rpn stack
author Jonathan Pevarnek <pevarnj@gmail.com>
date Thu, 15 Sep 2011 09:04:56 -0400
parents 8a9f090e4747
children 773af52f9811
files Makefile src/prog/stack.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Sep 12 11:13:40 2011 -0400
+++ b/Makefile	Thu Sep 15 09:04:56 2011 -0400
@@ -38,9 +38,10 @@
 	rm -f $(hello_OBJS)
 	rm -f $(ls_OBJS)
 	rm -f $(echo_OBJS)
-	rm -f $(sarpn_OBJS)
+	rm -f $(rpn_OBJS)
 	rm -f $(dynamic_OBJS)
 	rm -f $(testFS_OBJS)
+	rm -f $(broken_OBJS)
 	rm -f $(ARCH_OBJS)
 	rm -f $(OSBINS)
 	rm -f $(PROGBINS)
--- a/src/prog/stack.c	Mon Sep 12 11:13:40 2011 -0400
+++ b/src/prog/stack.c	Thu Sep 15 09:04:56 2011 -0400
@@ -33,8 +33,7 @@
 
 void stack_destroy(Stack *stack)
 {
-	eltType *val = malloc(sizeof(eltType));
-	while(stack->top) pop(stack, val);
+	eltType val;
+	while(stack->top) pop(stack, &val);
 	free(stack);
-	free(val);
 }