Browse code

core: add #!subst rule at the end of list

- fixed loop in resolving many #!subst rules

Daniel-Constantin Mierla authored on 13/09/2010 10:09:19
Showing 1 changed files
... ...
@@ -68,14 +68,13 @@ int pp_subst_add(char *data)
68 68
 	}
69 69
 	pr->indata = data;
70 70
 	pr->ppdata = (void*)se;
71
-	pr->next   = pp_subst_rules_tail;
72 71
 	if(pp_subst_rules_head==NULL)
73 72
 	{
74 73
 		pp_subst_rules_head = pr;
75
-		pp_subst_rules_tail = pr;
76 74
 	} else {
77 75
 		pp_subst_rules_tail->next = pr;
78 76
 	}
77
+	pp_subst_rules_tail = pr;
79 78
 
80 79
 	return 0;
81 80
 }