Commit 200bbdce by Andrew Pinski Committed by Andrew Pinski

parse.y (issue_warning_error_from_context): Call pp_output_formatted_text to be…

parse.y (issue_warning_error_from_context): Call pp_output_formatted_text to be able to get the buffer.

2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>

        * parse.y (issue_warning_error_from_context): Call
        pp_output_formatted_text to be able to get the buffer.

From-SVN: r101505
parent c50367a2
2005-06-29 Andrew Pinski <pinskia@physics.uc.edu>
2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
* parse.y (issue_warning_error_from_context): Call
pp_output_formatted_text to be able to get the buffer.
2005-06-30 Andrew Pinski <pinskia@physics.uc.edu>
* parse.y (issue_warning_error_from_context): Update for the
renaming of pp_format_text to pp_format.
......
......@@ -3142,6 +3142,7 @@ issue_warning_error_from_context (
text.args_ptr = ap;
text.format_spec = gmsgid;
pp_format (global_dc->printer, &text);
pp_output_formatted_text (global_dc->printer);
strncpy (buffer, pp_formatted_text (global_dc->printer), sizeof (buffer) - 1);
buffer[sizeof (buffer) - 1] = '\0';
pp_clear_output_area (global_dc->printer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment