+Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
+
+ * cli/cli-utils.c (putchar_filtered): Move function from here.
+ * utils.c (putchar_filtered): To here.
+ * cli/cli-utils.h (putchar_filtered): Move declaration from here.
+ * defs.h (putchar_filtered): To here.
+
Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
* configure.in (AC_CHECK_FUNCS): Replace vfork test with
#include "defs.h"
#include "cli/cli-utils.h"
-/* Write character C to gdb_stdout using GDB's paging mechanism and return C.
- May return nonlocally. */
-
-int
-putchar_filtered (int c)
-{
- return fputc_filtered (c, gdb_stdout);
-}
#if !defined (CLI_UTILS_H)
# define CLI_UTILS_H 1
-/* Write character C to gdb_stdout using GDB's paging mechanism and return C.
- May return nonlocally. */
-
-extern int putchar_filtered (int c);
-
#endif /* !defined (CLI_UTILS_H) */
#include "ui-file.h"
-/* More generic printf like operations */
+/* More generic printf like operations. Filtered versions may return
+ non-locally on error. */
extern void fputs_filtered (const char *, struct ui_file *);
extern int fputc_unfiltered (int c, struct ui_file *);
+extern int putchar_filtered (int c);
+
extern int putchar_unfiltered (int c);
extern void puts_filtered (const char *);
return c;
}
+/* Write character C to gdb_stdout using GDB's paging mechanism and return C.
+ May return nonlocally. */
+
+int
+putchar_filtered (int c)
+{
+ return fputc_filtered (c, gdb_stdout);
+}
+
int
fputc_unfiltered (int c, struct ui_file *stream)
{