summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-05-09 21:03:49 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-05-09 21:03:49 +0300
commit26911e4062be696b2090aa139f96f8210f012b48 (patch)
tree0fc2ad4dc9a8b68e0dc6e1a6aa5529fdb2410110 /io.c
parenta59319732d89feda419acab674ea580c95db7d4a (diff)
parentd71ec1612b2bfebded1854d536d54e3e5af7172e (diff)
downloadgawk-26911e4062be696b2090aa139f96f8210f012b48.tar.gz
Merge remote branch 'origin/xgawk-build'
Diffstat (limited to 'io.c')
-rw-r--r--io.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/io.c b/io.c
index 9c47bad6..6c5d990b 100644
--- a/io.c
+++ b/io.c
@@ -240,10 +240,7 @@ int RS_is_null;
extern NODE *ARGC_node;
extern NODE *ARGV_node;
extern NODE *ARGIND_node;
-<<<<<<< HEAD
-=======
extern NODE **fields_arr;
->>>>>>> xgawk
/* init_io --- set up timeout related variables */
@@ -2277,13 +2274,8 @@ do_getline_redir(int into_variable, enum redirval redirtype)
errcode = 0;
cnt = get_a_record(& s, iop, & errcode);
if (errcode != 0) {
-<<<<<<< HEAD
- if (! do_traditional && errcode != -1)
- update_ERRNO_saved(errcode);
-=======
if (! do_traditional && (errcode != -1))
update_ERRNO_int(errcode);
->>>>>>> xgawk
return make_number((AWKNUM) -1.0);
}
@@ -2330,15 +2322,9 @@ do_getline(int into_variable, IOBUF *iop)
errcode = 0;
cnt = get_a_record(& s, iop, & errcode);
if (errcode != 0) {
-<<<<<<< HEAD
- if (! do_traditional && errcode != -1)
- update_ERRNO_saved(errcode);
- if (into_variable)
-=======
if (! do_traditional && (errcode != -1))
update_ERRNO_int(errcode);
- if (intovar)
->>>>>>> xgawk
+ if (into_variable)
(void) POP_ADDRESS();
return make_number((AWKNUM) -1.0);
}