aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-09-15 05:11:52 +0000
committerStu Grossman <grossman@cygnus>1992-09-15 05:11:52 +0000
commitb36e3a9b49aa9a2a24555e0a6a50f5cd3d5323b7 (patch)
treea0a42b066fcf3ea62c16589bf5995ba426ef9492 /gdb/utils.c
parent3e3b0eb9d9bd49c08edbe181864a20282034c64d (diff)
downloadgdb-b36e3a9b49aa9a2a24555e0a6a50f5cd3d5323b7.zip
gdb-b36e3a9b49aa9a2a24555e0a6a50f5cd3d5323b7.tar.gz
gdb-b36e3a9b49aa9a2a24555e0a6a50f5cd3d5323b7.tar.bz2
Oops! Retract last change. Didn't mean to pollute things with energize just
yet!
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c44
1 files changed, 13 insertions, 31 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 4682d1d..b99e4f9 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -703,32 +703,21 @@ query (va_alist)
fflush (stdout);
va_start (args);
ctlstr = va_arg (args, char *);
- energize_query (ctlstr, args);
vfprintf_filtered (stdout, ctlstr, args);
+ va_end (args);
printf_filtered ("(y or n) ");
- if (energize)
- {
- char *buf;
-
- buf = energize_command_line_input(0, 0);
- answer = buf ? *buf : 'Y';
- energize_acknowledge_query(buf);
- }
- else
- {
- fflush (stdout);
- answer = fgetc (stdin);
- clearerr (stdin); /* in case of C-d */
- if (answer == EOF) /* C-d */
- return 1;
- if (answer != '\n') /* Eat rest of input line, to EOF or newline */
- do
- {
- ans2 = fgetc (stdin);
- clearerr (stdin);
- }
- while (ans2 != EOF && ans2 != '\n');
- }
+ fflush (stdout);
+ answer = fgetc (stdin);
+ clearerr (stdin); /* in case of C-d */
+ if (answer == EOF) /* C-d */
+ return 1;
+ if (answer != '\n') /* Eat rest of input line, to EOF or newline */
+ do
+ {
+ ans2 = fgetc (stdin);
+ clearerr (stdin);
+ }
+ while (ans2 != EOF && ans2 != '\n');
if (answer >= 'a')
answer -= 040;
if (answer == 'Y')
@@ -736,7 +725,6 @@ query (va_alist)
if (answer == 'N')
return 0;
printf_filtered ("Please answer y or n.\n");
- va_end (args);
}
}
@@ -1003,12 +991,6 @@ fputs_filtered (linebuffer, stream)
if (linebuffer == 0)
return;
- if (energize)
- {
- energize_fputs(linebuffer);
- return;
- }
-
/* Don't do any filtering if it is disabled. */
if (stream != stdout
|| (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))