{
j = if_condition(tline->next, i);
tline->next = NULL; /* it got freed */
- free_tlist(origline);
j = j < 0 ? COND_NEVER : j ? COND_IF_TRUE : COND_IF_FALSE;
}
+ free_tlist(origline);
cond = nasm_malloc(sizeof(Cond));
cond->next = istk->conds;
cond->state = j;
* the normal invocation of expand_mmac_params(). Therefore,
* we have to do it explicitly here.
*/
- j = if_condition(expand_mmac_params(tline->next), i);
- tline->next = NULL; /* it got freed */
- free_tlist(origline);
+ j = if_condition(expand_mmac_params(tline->next), i);
+ tline->next = NULL; /* it got freed */
istk->conds->state =
j < 0 ? COND_NEVER : j ? COND_IF_TRUE : COND_IF_FALSE;
}
+ free_tlist(origline);
return DIRECTIVE_FOUND;
case PP_ELSE:
smhead = &ctx->localmac;
mname = tline->text;
- last = tline;
- last->next = NULL;
/*
* We now have a macro name... go hunt for it.