Re: [pph] Save pending and specialized templates (issue4814054)

2011-07-28 Thread Lawrence Crowl
On 7/26/11, Gabriel Charette wrote: >> +/* Load a tinst_level list. */ >> + >> +static struct tinst_level * >> +pph_in_tinst_level (pph_stream *stream) >> +{ >> + struct tinst_level *last = NULL; >> + unsigned count = pph_in_uint (stream); >> + /* FIXME pph: This leaves the list in reverse ord

Re: [pph] Save pending and specialized templates (issue4814054)

2011-07-26 Thread Gabriel Charette
See comments inline. > + > +/* PPH write/read */ > + > + > +/* Emit a tinst_level list TINST to STREAM.  */ > + > +static void > +pph_out_tinst_level (pph_stream *stream, struct tinst_level *tinst) > +{ > +  int count; > +  struct tinst_level *cur; > + > +  /* Count the number of items.  */ > +  f