contrib/gcc-4.4/gcc/cp/cp-objcp-common.c
/* Construct a C++-aware pretty-printer for CONTEXT.  It is assumed
   that CONTEXT->printer is an already constructed basic pretty_printer.  */
Construct a C++-aware pretty-printer for CONTEXT.  It is assumed
that CONTEXT->printer is an already constructed basic pretty_printer.
Construct a C ++ - aware pretty - printer for CONTEXT . It is assumed that CONTEXT - > printer is an already constructed basic pretty_printer .
void
cxx_initialize_diagnostics (diagnostic_context *context)
{
  pretty_printer *base = context->printer;
  cxx_pretty_printer *pp = XNEW (cxx_pretty_printer);
  memcpy (pp_base (pp), base, sizeof (pretty_printer));
  pp_cxx_pretty_printer_init (pp);
  context->printer = (pretty_printer *) pp;
  free (base);
}
void cxx_initialize_diagnostics ( diagnostic_context * context ) { pretty_printer * base = context -> printer ; cxx_pretty_printer * pp = XNEW ( cxx_pretty_printer ) ; memcpy ( pp_base ( pp ) , base , sizeof ( pretty_printer ) ) ; pp_cxx_pretty_printer_init ( pp ) ; context -> printer = ( pretty_printer * ) pp ; free ( base ) ; }
Construct a C++-aware pretty-printer for CONTEXT.
Construct a C ++ - aware pretty - printer for CONTEXT .
/* It is safe to free this object because it was previously malloc()'d.  */