[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn_cmdline_printf and errors

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2004-05-17 00:32:53 CEST

On Sun, 16 May 2004, [UTF-8] Branko Ä^Libej wrote:

> Greg Hudson wrote:
>
> >On Sun, 2004-05-16 at 17:58, Peter N. Lundblad wrote:
> >
> >
> >>Hmmm... Isn't SVN_ERR (svn_cmdline_printf (...)); the only answer then?
> >>:-)
> >>
> >>
> >
> >I'm fine with that. I don't know why Branko thinks we should return
> >similar values to what printf returns. It's not like
> >svn_io_file_close() tries to be consistent with close(), and so forth.
> >
> >
> Oh well, if whoever replaces all the printfs/fputs's with these
> functions will add the SVN_ERR's, then I'll agree to this. Sometimes

I was planning to start that this evening, if not for that return value...
It's boring anyway, so I'll do that:-)

> it's nice to know how many chars you wrote, and we'll be forever hiding
> that info; but since we're not using it now...

If you need that, you can always use sprintf (oh, no, apr_psprintf:-)
first. But still you get the number of *bytes*, not the numer of
characters. Is that really that useful?

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 17 00:23:13 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.