Recovered from cvs revision 2007-10-28 06:12:00

This commit is contained in:
2007-10-29 00:11:00 +00:00
parent d60e97954b
commit 1fb4e03c11
4 changed files with 69 additions and 48 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: awk.c,v 1.19 2007/10/11 14:39:46 bacon Exp $
* $Id: awk.c,v 1.20 2007/10/26 12:49:24 bacon Exp $
*/
#include <ase/awk/awk.h>
@ -554,6 +554,14 @@ static ase_ssize_t awk_extio_console (
return -1;
}
if (ase_awk_setglobal (
epa->run, ASE_AWK_GLOBAL_NR, ase_awk_val_zero) == -1)
{
/* need to reset NR */
fclose (fp);
return -1;
}
if (epa->handle != ASE_NULL &&
epa->handle != stdin &&
epa->handle != stdout &&