+2018-04-24 Tom Tromey <tom@tromey.com>
+
+ * cli-out.c (cli_ui_out::out_field_fmt): Remove.
+ (cli_ui_out::do_field_string): Use fputs_filtered.
+ * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
+
2018-04-23 Tom Tromey <tom@tromey.com>
* guile/scm-frame.c (gdbscm_frame_read_var): Use
spaces (before);
if (string)
- out_field_fmt (fldno, fldname, "%s", string);
+ fputs_filtered (string, m_streams.back ());
if (after)
spaces (after);
/* local functions */
-/* Like cli_ui_out::do_field_fmt, but takes a variable number of args
- and makes a va_list and does not insert a separator. */
-
-/* VARARGS */
-void
-cli_ui_out::out_field_fmt (int fldno, const char *fldname,
- const char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- vfprintf_filtered (m_streams.back (), format, args);
-
- va_end (args);
-}
-
void
cli_ui_out::field_separator ()
{
private:
void field_separator ();
- void out_field_fmt (int fldno, const char *fldname, const char *format, ...)
- ATTRIBUTE_PRINTF (4, 5);
std::vector<ui_file *> m_streams;
bool m_suppress_output;