[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Fri May 7 01:17:20 MDT 2010


On Thursday 06 May 2010 23:14:08 you wrote:
> On Thu, 2010-05-06 at 11:14 -0500, Andreas Schneider wrote:
> > The branch, master has been updated
> > 
> >        via  8290007... talloc: Documented the missing string functions.
> >       
> >       from  516f7c5... Fix SMB2 lock tests up to cancel-by-close.
> > 
> > http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
> > 
> > 
> > - Log -----------------------------------------------------------------
> > commit 82900073fb38b8d86fe2b9ef2ef5cd9fabfbaec7
> > Author: Andreas Schneider <asn at samba.org>
> > Date:   Thu May 6 17:50:26 2010 +0200
> > 
> >     talloc: Documented the missing string functions.
> 
> Andreas,

Andrew,
 
> This documentation is good, but I worry that it tells us little more
> than what the original function names told us.

the functions were missing in the html output so I've just added them to show 
up.

> There is a critical important difference between the append and
> append_buffer routines - that is, the append_buffer routine uses the
> fact that the terminating NULL is at the end of the talloc allocated
> buffer.  This allowed O(1) construction of long strings, without a new
> strlen() each time.

Please add a more verbose description to the documentation adding these 
details. The tevent documentation is lacking of a lot more detailed 
documentation too. As I didn't use all the functions yet I don't know all the 
details and we should all work on improving the API documentation, especially 
for such important libraries which is used by other projects too.

Cheers,


	-- andreas



More information about the samba-technical mailing list