> From: Greg Stein [mailto:gstein@lyra.org]
 
> >...
> > +/* Used by the trace_update editor in libsvn_client
> > + */
> > +void
> > +svn_cl__print_message(void *ui_baton,
> > +                      svn_stringbuf_t *msg)
> > +{
> > +  fputs(msg->data, stdout);
> > +}
> 
> 1) that should be const svn_string_t *, or just const char *. No need
for
> a
>    darned stringbuf.
> 
> 2) use fwrite if you have a string(buf), since you already have the
length.
> 
Most (99.9%) of the trace messages are formatted output anyway. If we
pass in a stringbuf, the extra length data might help out UI apps that
need to convert the thing into a Unicode string. Additionally, the
command line client is going to use puts() anyway, since the trace
messages shouldn't include \n at the end of the strings.
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:53 2006