This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Where did output_add_string go?


On Mon, 2003-08-18 at 17:49, Gabriel Dos Reis wrote:

> | The old function took as argument a FILE * and the tree node to print
> | (assumed to be a C _STMT node).
> 
> after pp_construct() and pp_c_pretty_printer_init(), set
> pp_base (printer)->stream to that argument. 
> 
Hmm, I was hoping to re-use whatever object is initialized by
c_initialize_diagnostics.  All that malloc/free/memcpy activity to print
a single node doesn't sound appealing.  Could I (ab)use global_dc for
this?  (it's not all that appealing either).


Thanks.  Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]