From: Tom Tromey Date: Sat, 12 Feb 2022 01:10:00 +0000 (-0700) Subject: Remove c_emit_char X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1c7fe59f67f5f4e3ca6f6fea1de46b983be8995;p=binutils-gdb.git Remove c_emit_char This renames c_emit_char, removing a layer of indirection. --- diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 88ccc8aaf41..d6c56f31616 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -144,8 +144,8 @@ classify_type (struct type *elttype, struct gdbarch *gdbarch, for printing characters and strings is language specific. */ void -c_emit_char (int c, struct type *type, - struct ui_file *stream, int quoter) +language_defn::emitchar (int c, struct type *type, + struct ui_file *stream, int quoter) const { const char *encoding; diff --git a/gdb/c-lang.h b/gdb/c-lang.h index 096eb027fd7..b26996c20b1 100644 --- a/gdb/c-lang.h +++ b/gdb/c-lang.h @@ -104,9 +104,6 @@ extern void c_printstr (struct ui_file * stream, extern void c_language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai); -extern void c_emit_char (int c, struct type *type, - struct ui_file *stream, int quoter); - /* These are in c-typeprint.c: */ extern void c_type_print_base (struct type *, struct ui_file *, diff --git a/gdb/language.c b/gdb/language.c index d3cc14c3079..114ee3aedd9 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -635,15 +635,6 @@ language_defn::value_print_inner /* See language.h. */ -void -language_defn::emitchar (int ch, struct type *chtype, - struct ui_file * stream, int quoter) const -{ - c_emit_char (ch, chtype, stream, quoter); -} - -/* See language.h. */ - void language_defn::printstr (struct ui_file *stream, struct type *elttype, const gdb_byte *string, unsigned int length,