removed unnecessary code in some initialization code.

added errnum to some open functions
This commit is contained in:
2015-06-12 13:11:50 +00:00
parent 7675a86234
commit 26440f1a96
22 changed files with 75 additions and 62 deletions

View File

@ -17,7 +17,7 @@ static int sed_main (int argc, qse_char_t* argv[])
}
/* create a sed object */
sed = qse_sed_openstd (0);
sed = qse_sed_openstd (0, QSE_NULL);
if (sed == QSE_NULL)
{
qse_fprintf (QSE_STDERR, QSE_T("ERROR: cannot open sed\n"));

View File

@ -17,7 +17,7 @@ static int sed_main (int argc, qse_char_t* argv[])
}
/* create the sed object */
sed = qse_sed_openstd (0);
sed = qse_sed_openstd (0, QSE_NULL);
if (sed == QSE_NULL)
{
qse_fprintf (QSE_STDERR, QSE_T("ERROR: cannot open sed\n"));

View File

@ -23,7 +23,7 @@ static int sed_main (int argc, qse_char_t* argv[])
int ret = -1;
/* create the sed object */
sed = qse_sed_openstd (0);
sed = qse_sed_openstd (0, QSE_NULL);
if (sed == QSE_NULL)
{
qse_fprintf (QSE_STDERR, QSE_T("ERROR: cannot open sed\n"));