diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-12-20 22:51:21 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-12-20 22:51:21 +0200 |
commit | f64ff5401e1560fc16146fe5b5d0f0991ee11d49 (patch) | |
tree | 9040efba6b5c130ebde3dc27e0e192e359f60335 /io.c | |
parent | 15c0767388354cdeb99caad6441ebd26747804ea (diff) | |
parent | f1612fd046124ff68fcdd70b558484c87c907bce (diff) | |
download | egawk-f64ff5401e1560fc16146fe5b5d0f0991ee11d49.tar.gz egawk-f64ff5401e1560fc16146fe5b5d0f0991ee11d49.tar.bz2 egawk-f64ff5401e1560fc16146fe5b5d0f0991ee11d49.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -323,6 +323,8 @@ static Regexp *RS_re_yes_case; /* regexp for RS when ignoring case */ static Regexp *RS_re_no_case; /* regexp for RS when not ignoring case */ static Regexp *RS_regexp; +static const char nonfatal[] = "NONFATAL"; + bool RS_is_null; extern NODE *ARGC_node; @@ -1100,8 +1102,6 @@ getredirect(const char *str, int len) bool is_non_fatal_std(FILE *fp) { - static const char nonfatal[] = "NONFATAL"; - if (in_PROCINFO(nonfatal, NULL, NULL)) return true; @@ -1121,8 +1121,8 @@ is_non_fatal_std(FILE *fp) bool is_non_fatal_redirect(const char *str) { - return in_PROCINFO("NONFATAL", NULL, NULL) != NULL - || in_PROCINFO(str, "NONFATAL", NULL) != NULL; + return in_PROCINFO(nonfatal, NULL, NULL) != NULL + || in_PROCINFO(str, nonfatal, NULL) != NULL; } /* close_one --- temporarily close an open file to re-use the fd */ |