else
tf.fp = fopen(conf.filename, "w");
if (!tf.fp) {
- error(err_cantopenw, conf.filename);
+ err_cantopenw(conf.filename);
return;
}
tf.charset = conf.charset;
wchar_t s[2];
s[0] = c;
s[1] = L'\0';
- while (n--)
+ while (n-- > 0)
text_output(tf, s);
}
for (; text; text = text->next) if (text->type == word_WeakCode) {
int wid = ustrwid(text->text, tf->charset);
if (wid > width)
- error(err_text_codeline, &text->fpos, wid, width);
+ err_text_codeline(&text->fpos, wid, width);
text_output_many(tf, indent, L' ');
text_output(tf, text->text);
text_output(tf, L"\n");