diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-12 19:12:13 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-12 19:12:13 +0200 |
commit | cc04afb329cea035d0d9b67cd3b677e06b2f3996 (patch) | |
tree | 3622f3f241d75079bcafd24651a4952e357a9c09 /io.c | |
parent | 9a31c12053ef715ccb732f456de00b4afc38d888 (diff) | |
download | egawk-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |