refactored code a little bit

This commit is contained in:
2017-09-13 14:04:01 +00:00
parent 936426de42
commit aa6a41c009
4 changed files with 12 additions and 29 deletions

View File

@ -443,9 +443,8 @@ static int xli_main (int argc, qse_char_t* argv[])
if (n <= -1)
{
const qse_xli_loc_t* errloc;
errloc = qse_xli_geterrloc (xli);
errloc = qse_xli_geterrloc (xli);
if (errloc->line > 0 || errloc->colm > 0)
{
qse_fprintf (QSE_STDERR,
@ -539,13 +538,12 @@ static int xli_main (int argc, qse_char_t* argv[])
out.type = QSE_XLI_IOSTD_FILE;
out.u.file.path = QSE_T("-");
out.u.file.cmgr = g_outfile_cmgr;
qse_xli_writestd (xli, pair->val, &out);
qse_xli_writestd (xli, (qse_xli_list_t*)pair->val, &out);
}
}
}
}
out.type = QSE_XLI_IOSTD_FILE;
out.u.file.path = g_output_file? g_output_file: QSE_T("-");
out.u.file.cmgr = g_outfile_cmgr;