Remove c_printstr

This renames c_printstr, removing a layer of indirection.
This commit is contained in:
Tom Tromey
2022-02-11 18:14:17 -07:00
parent c1c7fe59f6
commit 3a3bb6eb36
4 changed files with 7 additions and 26 deletions

View File

@ -190,10 +190,10 @@ language_defn::printchar (int c, struct type *type,
characters, or if FORCE_ELLIPSES. */
void
c_printstr (struct ui_file *stream, struct type *type,
const gdb_byte *string, unsigned int length,
const char *user_encoding, int force_ellipses,
const struct value_print_options *options)
language_defn::printstr (struct ui_file *stream, struct type *type,
const gdb_byte *string, unsigned int length,
const char *user_encoding, int force_ellipses,
const struct value_print_options *options) const
{
c_string_type str_type;
const char *type_encoding;