aboutsummaryrefslogtreecommitdiffstats
path: root/iop.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:30:13 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:30:13 +0300
commit66b0bdd602e952f20fa98f6ce5430cea68d4f598 (patch)
tree0b5f379a44720da132f3bd6a66cd900ca821a9aa /iop.c
parent61bb57af53ebe916d2db6e3585d4fc7ac1d99b92 (diff)
downloadegawk-66b0bdd602e952f20fa98f6ce5430cea68d4f598.tar.gz
egawk-66b0bdd602e952f20fa98f6ce5430cea68d4f598.tar.bz2
egawk-66b0bdd602e952f20fa98f6ce5430cea68d4f598.zip
Move to gawk-2.15.4.
Diffstat (limited to 'iop.c')
-rw-r--r--iop.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/iop.c b/iop.c
index 0d7af121..6e6b7890 100644
--- a/iop.c
+++ b/iop.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991, 1992 the Free Software Foundation, Inc.
+ * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Progamming Language.
@@ -62,7 +62,7 @@ int fd;
else if (fstat(fd, &stb) < 0)
return 8*512; /* conservative in case of DECnet access */
else
- return 24*512;
+ return 32*512;
#else
/*
@@ -146,17 +146,14 @@ int *errcode;
register char *bp = iop->off;
char *bufend;
char *start = iop->off; /* beginning of record */
- int saw_newline;
char rs;
- int eat_whitespace;
+ int saw_newline = 0, eat_whitespace = 0; /* used iff grRS==0 */
if (iop->cnt == EOF) /* previous read hit EOF */
return EOF;
if (grRS == 0) { /* special case: grRS == "" */
rs = '\n';
- eat_whitespace = 0;
- saw_newline = 0;
} else
rs = (char) grRS;