fixed a bug in configure.ac and bugs in awk sample programs

This commit is contained in:
2014-06-08 14:11:12 +00:00
parent d40eb87b85
commit 4bb71a765e
25 changed files with 202 additions and 127 deletions

View File

@ -21,7 +21,7 @@
#include <qse/awk/awk.h>
#include <qse/awk/stdawk.h>
#include <qse/cmn/mem.h>
#include <qse/cmn/stdio.h>
#include <qse/cmn/sio.h>
static const qse_char_t* src = QSE_T(
"BEGIN {"
@ -45,6 +45,8 @@ int main ()
int ret;
qse_openstdsios ();
awk = qse_awk_openstd (0);
if (awk == QSE_NULL)
{
@ -104,6 +106,8 @@ int main ()
oops:
if (rtx != QSE_NULL) qse_awk_rtx_close (rtx);
if (awk != QSE_NULL) qse_awk_close (awk);
qse_closestdsios ();
return -1;
}