From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 3C46B3858032; Mon, 10 Oct 2022 17:38:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C46B3858032 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665423519; bh=8AVgll/TFwzjLGLVHdwEF0uQ7UekMsZbcnHMeGtZlUA=; h=From:To:Subject:Date:From; b=hq96n/+3aRBYSsJJrYBuZbSHByShfKDbAhihUPlNfCnS/OWjsujV5gY8/hQK1EmK4 xpPcFrPiV+c4tYaGGe80NHYD6XZZbtVyNO4K8EgGZyMqrstlGi4/y9TtvS2DS+0gZn 1vuNKTakjTqv8zwSXP+Wpz5UP97pg9tHq0cWHkj8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove c_emit_char X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 3a64633804aca8b4c4852241c70936177664c18a X-Git-Newrev: c1c7fe59f67f5f4e3ca6f6fea1de46b983be8995 Message-Id: <20221010173839.3C46B3858032@sourceware.org> Date: Mon, 10 Oct 2022 17:38:39 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc1c7fe59f67f= 5f4e3ca6f6fea1de46b983be8995 commit c1c7fe59f67f5f4e3ca6f6fea1de46b983be8995 Author: Tom Tromey Date: Fri Feb 11 18:10:00 2022 -0700 Remove c_emit_char =20 This renames c_emit_char, removing a layer of indirection. Diff: --- gdb/c-lang.c | 4 ++-- gdb/c-lang.h | 3 --- gdb/language.c | 9 --------- 3 files changed, 2 insertions(+), 14 deletions(-) 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 *gd= barch, for printing characters and strings is language specific. */ =20 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; =20 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); =20 -extern void c_emit_char (int c, struct type *type, - struct ui_file *stream, int quoter); - /* These are in c-typeprint.c: */ =20 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 =20 /* See language.h. */ =20 -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,