changeset 856:d9dd3e6e7c5f

macro compatibility
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 22 Nov 2011 05:44:49 +0900
parents 740b026e58b9
children 6ddb6444195b
files mc-macro.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mc-macro.c	Tue Nov 22 05:33:40 2011 +0900
+++ b/mc-macro.c	Tue Nov 22 05:44:49 2011 +0900
@@ -1045,7 +1045,9 @@
 		} else if (next_concat(c,body)) {
 		    prev_concat = 1;
 		    macro = nptrm->u.nm;
-		}  else if (!macro[0]) macro = nptrm->nm;
+		}  
+		if (macro==0 || !macro[0]) 
+		    macro = nptrm->nm;
 		goto skip;
 	    case MACRO:
 		if (neqname(nptrm->nm,macro)) {