diff options
Diffstat (limited to 'gcc/graphviz.cc')
-rw-r--r-- | gcc/graphviz.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/graphviz.cc b/gcc/graphviz.cc index 177fc20..ea7bb9d 100644 --- a/gcc/graphviz.cc +++ b/gcc/graphviz.cc @@ -36,13 +36,10 @@ graphviz_out::graphviz_out (pretty_printer *pp) void graphviz_out::print (const char *fmt, ...) { - text_info text; va_list ap; va_start (ap, fmt); - text.err_no = errno; - text.args_ptr = ≈ - text.format_spec = fmt; + text_info text (fmt, &ap, errno); pp_format (m_pp, &text); pp_output_formatted_text (m_pp); va_end (ap); @@ -54,15 +51,12 @@ graphviz_out::print (const char *fmt, ...) void graphviz_out::println (const char *fmt, ...) { - text_info text; va_list ap; write_indent (); va_start (ap, fmt); - text.err_no = errno; - text.args_ptr = ≈ - text.format_spec = fmt; + text_info text (fmt, &ap, errno); pp_format (m_pp, &text); pp_output_formatted_text (m_pp); va_end (ap); |