[PATCH] Document talloc with doxygen

simo idra at samba.org
Fri Jan 29 06:22:57 MST 2010

On Fri, 2010-01-29 at 19:07 +1100, Brad Hards wrote:
> An alternative is to embed the documentation into the source (.c),
> which does 
> have the risk in that you document "how the function does its stuff"
> rather 
> than "what this function does". The upside is that the header remains
> cleaner, 
> and you don't have to recompile every dependency when you fix a typo
> in the API 
> dox. That is obviously a good alternative if you're generating
> headers 
> automatically (OpenChange does this).

One of the reasons it's in the header is that talloc's API and ABI
differ. Talloc heavily uses preprocessor macros in the header, and
that's the API you want to document.


Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>

More information about the samba-technical mailing list