diff main.c @ 18:c08a947d8f30

deal with macro parameters
author David A. Holland
date Mon, 20 Dec 2010 01:51:47 -0500
parents 76da41da923f
children 76c114899f63
line wrap: on
line diff
--- a/main.c	Mon Dec 20 01:15:43 2010 -0500
+++ b/main.c	Mon Dec 20 01:51:47 2010 -0500
@@ -133,8 +133,8 @@
 	for (i=0; i<num; i++) {
 		cm = array_get(&commandline_macros, i);
 		if (cm->expansion != NULL) {
-			macro_define(&cm->where, cm->macro,
-				     &cm->where2, cm->expansion);
+			macro_define_plain(&cm->where, cm->macro,
+					   &cm->where2, cm->expansion);
 		} else {
 			macro_undef(cm->macro);
 		}
@@ -150,7 +150,7 @@
 	struct place p;
 
 	place_setbuiltin(&p, num);
-	macro_define(&p, name, &p, val);
+	macro_define_plain(&p, name, &p, val);
 }
 
 static