aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-04-01 11:52:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-04-01 11:52:37 +0300
commit6aed27e0a553cb31800bbaeee1bf8e96a98abb12 (patch)
tree6da50e73f4ef581b3e66dbcec614d39a3dbf23db /debug.c
parentb1746329b7749a8f760bab04c12e5127a23e46ed (diff)
downloadegawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.gz
egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.bz2
egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.zip
Change ISATTY macro to os_isatty function.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/debug.c b/debug.c
index 1086563b..3726f054 100644
--- a/debug.c
+++ b/debug.c
@@ -2738,7 +2738,7 @@ interpret(INSTRUCTION *pc)
input_fd = fileno(stdin);
out_fp = stdout;
- if (ISATTY(input_fd))
+ if (os_isatty(input_fd))
input_from_tty = TRUE;
if (input_fd == 0 && input_from_tty)
initialize_readline();
@@ -4089,7 +4089,7 @@ do_option(CMDARG *arg, int cmd ATTRIBUTE_UNUSED)
void
initialize_pager(FILE *fp)
{
- if (! ISATTY(fileno(fp)) || ! input_from_tty || input_fd != 0) {
+ if (! os_isatty(fileno(fp)) || ! input_from_tty || input_fd != 0) {
screen_width = INT_MAX;
screen_height = INT_MAX;
} else {
@@ -4113,7 +4113,7 @@ prompt_continue(FILE *fp)
{
int quit_pager = FALSE;
- if (ISATTY(fileno(fp)) && input_fd == 0)
+ if (os_isatty(fileno(fp)) && input_fd == 0)
quit_pager = prompt_yes_no(
_("\t------[Enter] to continue or q [Enter] to quit------"),
_("q")[0], FALSE, fp);
@@ -5071,7 +5071,7 @@ set_gawk_output(const char *file)
efree(output_file);
}
output_fp = stdout;
- output_is_tty = ISATTY(fileno(stdout));
+ output_is_tty = os_isatty(fileno(stdout));
output_file = "/dev/stdout";
}
@@ -5092,7 +5092,7 @@ set_gawk_output(const char *file)
if (STREQ(cp, "stderr")) {
output_fp = stderr;
output_file = "/dev/stderr";
- output_is_tty = ISATTY(fileno(stderr));
+ output_is_tty = os_isatty(fileno(stderr));
return;
}
@@ -5125,7 +5125,7 @@ set_gawk_output(const char *file)
output_fp = fp;
output_file = estrdup(file, strlen(file));
setbuf(fp, (char *) NULL);
- output_is_tty = ISATTY(fileno(fp));
+ output_is_tty = os_isatty(fileno(fp));
} else {
d_error(_("could not open `%s' for writing (%s)"),
file,