#include "tree.h"
#include "c-tree.h"
#include "intl.h"
-#include "c-pretty-print.h"
+#include "c-family/c-pretty-print.h"
#include "flags.h"
#include "diagnostic.h"
#include "tree-pretty-print.h"
c_tree_printer (pretty_printer *pp, text_info *text, const char *spec,
int precision, bool wide, bool set_locus, bool hash)
{
- tree t;
+ tree t = NULL_TREE;
tree name;
c_pretty_printer *cpp = (c_pretty_printer *) pp;
pp->padding = pp_none;
void
c_initialize_diagnostics (diagnostic_context *context)
{
- pretty_printer *base = context->printer;
- c_pretty_printer *pp = XNEW (c_pretty_printer);
+ pretty_printer *base;
+ c_pretty_printer *pp;
+
+ c_common_initialize_diagnostics (context);
+
+ base = context->printer;
+ pp = XNEW (c_pretty_printer);
memcpy (pp_base (pp), base, sizeof (pretty_printer));
pp_c_pretty_printer_init (pp);
context->printer = (pretty_printer *) pp;