aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-12 19:12:13 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-12 19:12:13 +0200
commitcc04afb329cea035d0d9b67cd3b677e06b2f3996 (patch)
tree3622f3f241d75079bcafd24651a4952e357a9c09 /io.c
parent9a31c12053ef715ccb732f456de00b4afc38d888 (diff)
downloadegawk-cc04afb329cea035d0d9b67cd3b677e06b2f3996.tar.gz
egawk-cc04afb329cea035d0d9b67cd3b677e06b2f3996.tar.bz2
egawk-cc04afb329cea035d0d9b67cd3b677e06b2f3996.zip
Further code improvements and doc changes as diff until merge.
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 354420b1..4e2c6cf2 100644
--- a/io.c
+++ b/io.c
@@ -533,7 +533,7 @@ nextfile(IOBUF **curfile, bool skipping)
unref(FILENAME_node->var_value);
FILENAME_node->var_value = make_string("-", 1);
- FILENAME_node->var_value->flags |= MAYBE_NUM; /* be pedantic */
+ FILENAME_node->var_value->flags |= USER_INPUT; /* be pedantic */
fname = "-";
iop = iop_alloc(fileno(stdin), fname, 0);
*curfile = iop_finish(iop);
@@ -2657,7 +2657,7 @@ do_getline_redir(int into_variable, enum redirval redirtype)
else { /* assignment to variable */
unref(*lhs);
*lhs = make_string(s, cnt);
- (*lhs)->flags |= MAYBE_NUM;
+ (*lhs)->flags |= USER_INPUT;
}
return make_number((AWKNUM) 1.0);
@@ -2700,7 +2700,7 @@ do_getline(int into_variable, IOBUF *iop)
lhs = POP_ADDRESS();
unref(*lhs);
*lhs = make_string(s, cnt);
- (*lhs)->flags |= MAYBE_NUM;
+ (*lhs)->flags |= USER_INPUT;
}
return make_number((AWKNUM) 1.0);
}