changeset 857:6ddb6444195b

recursive macro history fix. don't assign local history variable.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 22 Nov 2011 10:51:32 +0900
parents d9dd3e6e7c5f
children c533933fbacc
files mc-macro.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mc-macro.c	Tue Nov 22 05:44:49 2011 +0900
+++ b/mc-macro.c	Tue Nov 22 10:51:32 2011 +0900
@@ -1060,8 +1060,7 @@
 		    }
 		    *cheap->ptr = 0;
 		    cheap = increment_cheap(cheap,expand);
-		    history = glist3s(STRING,history,nptrm->nm);
-		    macrop=macro_eval(macrop,macro,history);
+		    macrop=macro_eval(macrop,macro,glist3s(STRING,history,nptrm->nm));
 		    macrop = list3s(STRING,macrop,cheap->ptr);
 		    expand = (char **)&(scaddr(macrop));
 		    break;