diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-09 22:11:01 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-09 22:11:01 +0200 |
commit | ae9e583a257264f4580d07354e79aac63db72695 (patch) | |
tree | 5a03a771ec6588c0dede291c56df8ec9cb783f7a /builtin.c | |
parent | a5a114bf6c6f2efdcd7889ebf0d7f9f3ec235a74 (diff) | |
parent | d283194601bc7cb7c071317a8d53a89a3cbac40d (diff) | |
download | egawk-ae9e583a257264f4580d07354e79aac63db72695.tar.gz egawk-ae9e583a257264f4580d07354e79aac63db72695.tar.bz2 egawk-ae9e583a257264f4580d07354e79aac63db72695.zip |
Merge branch 'master' into array-iface
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -111,7 +111,7 @@ efwrite(const void *ptr, goto wrerror; if (flush && ((fp == stdout && output_is_tty) - || (rp != NULL && (rp->flag & RED_NOBUF)))) { + || (rp != NULL && (rp->flag & RED_NOBUF) != 0))) { if (rp != NULL) { rp->output.gawk_fflush(fp, rp->output.opaque); if (rp->output.gawk_ferror(fp, rp->output.opaque)) @@ -220,7 +220,7 @@ do_fflush(int nargs) status = -1; if (rp != NULL) { if ((rp->flag & (RED_WRITE|RED_APPEND)) == 0) { - if (rp->flag & RED_PIPE) + if ((rp->flag & RED_PIPE) != 0) warning(_("fflush: cannot flush: pipe `%s' opened for reading, not writing"), file); else @@ -1053,7 +1053,7 @@ check_pos: /* user input that looks numeric is numeric */ if ((arg->flags & (MAYBE_NUM|NUMBER)) == MAYBE_NUM) (void) force_number(arg); - if (arg->flags & NUMBER) { + if ((arg->flags & NUMBER) != 0) { uval = get_number_uj(arg); #if MBS_SUPPORT if (gawk_mb_cur_max > 1) { @@ -2043,7 +2043,7 @@ do_system(int nargs) ret = system(cmd); if (ret != -1) ret = WEXITSTATUS(ret); - if ((BINMODE & 1) != 0) + if ((BINMODE & BINMODE_INPUT) != 0) os_setbinmode(fileno(stdin), O_BINARY); cmd[tmp->stlen] = save; @@ -2766,7 +2766,7 @@ set_how_many: repllen--; ampersands++; } else if (*scan == '\\') { - if (flags & GENSUB) { /* gensub, behave sanely */ + if ((flags & GENSUB) != 0) { /* gensub, behave sanely */ if (isdigit((unsigned char) scan[1])) { ampersands++; scan++; @@ -2959,7 +2959,7 @@ done: } /* For a string literal, must not change the original string. */ - if (flags & LITERAL) + if ((flags & LITERAL) != 0) DEREF(t); else if (matches > 0) { unref(*lhs); |