From a11ac3b3e8ff6769badcf0041894f6c5acc1b94f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 11:42:07 -0700 Subject: Unify gdb putc functions Now that filtered and unfiltered output can be treated identically, we can unify the putc family of functions. This is done under the name "gdb_putc". Most of this patch was written by script. --- gdb/guile/scm-ports.c | 2 +- gdb/guile/scm-pretty-print.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/guile') diff --git a/gdb/guile/scm-ports.c b/gdb/guile/scm-ports.c index c61ca1d..946859a 100644 --- a/gdb/guile/scm-ports.c +++ b/gdb/guile/scm-ports.c @@ -204,7 +204,7 @@ fputsn_filtered (const char *s, size_t size, struct ui_file *stream) if (s[i] == '\0') gdb_puts ("\\000", stream); else - fputc_filtered (s[i], stream); + gdb_putc (s[i], stream); } } diff --git a/gdb/guile/scm-pretty-print.c b/gdb/guile/scm-pretty-print.c index 8a5c02d..707ef4b 100644 --- a/gdb/guile/scm-pretty-print.c +++ b/gdb/guile/scm-pretty-print.c @@ -689,7 +689,7 @@ ppscm_print_string_repr (SCM printer, enum display_hint hint, if (string.get ()[i] == '\0') gdb_puts ("\\000", stream); else - fputc_filtered (string.get ()[i], stream); + gdb_putc (string.get ()[i], stream); } } result = STRING_REPR_OK; -- cgit v1.1