]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move putchar_filtered() to utils.c.
authorAndrew Cagney <cagney@redhat.com>
Wed, 31 Jan 2001 03:46:23 +0000 (03:46 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 31 Jan 2001 03:46:23 +0000 (03:46 +0000)
gdb/ChangeLog
gdb/cli/cli-utils.c
gdb/cli/cli-utils.h
gdb/defs.h
gdb/utils.c

index f0e6130feed23b8b8c8597256b77656c11047b14..30caec49b8370c2ab8a5b49e30c4b9564ce71195 100644 (file)
@@ -1,3 +1,10 @@
+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
index 29019ece518603cfc00223053ee4405d9b5d617b..396d6ead5eb8239ce15bf7a976a621e29d559b8a 100644 (file)
 #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);
-}
index 313caf47eda2b28ce068994baa4a3ea1a61e5b52..115af8b6b2091bc5bb35ccd7658bb7b5b4d048e6 100644 (file)
@@ -19,9 +19,4 @@
 #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) */
index b0612808c0322e1a5784e414b42023ee458f6534..092f21c5a85ad03a4223f8ac1089552e668b14d5 100644 (file)
@@ -435,7 +435,8 @@ extern struct ui_file *gdb_stdtarg;
 
 #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 *);
 
@@ -445,6 +446,8 @@ extern int fputc_filtered (int c, 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 *);
index 9cfdd3f24581c3e99cc09d2f728cd11b5bf6fcd3..98bee73e088e6de65f7bcd14aa3a7a810ee1a16c 100644 (file)
@@ -1857,6 +1857,15 @@ putchar_unfiltered (int c)
   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)
 {