ID->Flags |= ifParentCond;
}
ID->LineInfos = EmptyCollection;
- GetFullLineInfo (&ID->LineInfos, 0);
+ GetFullLineInfo (&ID->LineInfos);
ID->Name = Directive;
/* One more slot allocated */
Done = 1;
} else {
Done = (ID->Flags & ifNeedTerm) != 0;
+ ReleaseFullLineInfo (&ID->LineInfos);
DoneCollection (&ID->LineInfos);
--IfCount;
}
/* Remember the data for the .ELSE */
if (D) {
- GetFullLineInfo (&D->LineInfos, 0);
+ ReleaseFullLineInfo (&D->LineInfos);
+ GetFullLineInfo (&D->LineInfos);
D->Name = ".ELSE";
}
}
LI = CollConstAt (&D->LineInfos, 0);
- if (LI->Pos.Name != CurTok.Pos.Name) {
+ if (GetSourcePos (LI)->Name != CurTok.Pos.Name) {
/* The .if is from another file, bail out */
break;
}