diff lwasm/symbol.c @ 370:6b33faa21a0a

Debugging output and bugfixing pass 0
author lost@starbug
date Tue, 20 Apr 2010 21:59:58 -0600
parents d96c30e60ddf
children d99322ef6f21
line wrap: on
line diff
--- a/lwasm/symbol.c	Thu Apr 15 22:26:49 2010 -0600
+++ b/lwasm/symbol.c	Tue Apr 20 21:59:58 2010 -0600
@@ -26,6 +26,7 @@
 
 #include <lw_alloc.h>
 #include <lw_expr.h>
+#include <lw_string.h>
 
 #include "lwasm.h"
 
@@ -106,6 +107,7 @@
 	se -> version = version;
 	se -> flags = flags;
 	se -> value = lw_expr_copy(val);
+	se -> symbol = lw_strdup(sym);
 	return se;
 }