int acc_brace = 0;
int acc_braces[8];
MathParInset * mt = (mtx) ? *mtx : 0;
- MathedRowSt * crow = (mt) ? mt->getRowSt() : 0;
+ MathedRowSt * crow = (mt) ? mt->getRowSt().data_ : 0;
++plevel;
MathedIter data(&array);
if (mt && (flags & FLAG_END)) {
if (mt->Permit(LMPF_ALLOW_CR)) {
if (crow) {
- crow->setNext(new MathedRowSt(mt->GetColumns() + 1)); // this leaks
- crow = crow->getNext();
+ crow->next_ = new MathedRowSt(mt->GetColumns() + 1);
+ crow = crow->next_;
}
data.insert('K', LM_TC_CR);
} else
case LM_TK_PMOD:
case LM_TK_FUNC:
- {
-#warning This must leak. (Lgb)
- // if (accent) this must leak... (Lgb)
- MathedInset * bg = new MathFuncInset(yylval.l->name);
if (accent) {
data.insert(t, LM_TC_CONST);
- } else
+ } else {
+ MathedInset * bg = new MathFuncInset(yylval.l->name);
data.insertInset(bg, LM_TC_INSET);
+ }
break;
- }
case LM_TK_FUNCLIM:
data.insertInset(new MathFuncInset(yylval.l->name, LM_OT_FUNCLIM),
}
mt->SetStyle(size);
mt->SetType(mathed_env);
- crow = mt->getRowSt();
+ crow = mt->getRowSt().data_;
}
-#ifdef DEBUG
- lyxerr << "MATH BEGIN[" << mathed_env << "]" << endl;
-#endif
+ lyxerr[Debug::MATHED] << "MATH BEGIN[" << mathed_env << "]" << endl;
} else {
// lyxerr << "MATHCRO[" << yytext << "]";
MathMacro * p =
} else {
mathed_label = yytext.data();
}
-#ifdef DEBUG
- lyxerr << "Label[" << mathed_label << "]" << endl;
-#endif
+ lyxerr[Debug::MATHED] << "Label[" << mathed_label << "]" << endl;
break;
}