tdb namespace pollution

Jeremy Allison jra at samba.org
Wed Jan 9 10:14:04 GMT 2002


On Wed, Jan 09, 2002 at 07:00:47PM +0100, Elrond wrote:
> 
> Hi,
> 
> tdb.h exports a quite clean namespace.
> 
> Nearly everything exported from it starts out in tdb_*.
> 
> One exception:
> 
> SAFE_FREE.

Yeah, I added that when I was getting safe free religion,
and I wasn't too happy about that side effect either :-(.

> Can this either be changed or just (which I would prefer)
> be moved into tdb.c?

That's probably the best solution I think. I'll
do that asap.


> If moving into tdb.c, I'd suggest something like:
>   #ifdef SAFE_FREE
>   #undef SAFE_FREE
>   #endif
>   #define SAFE_FREE ...
> after all includes, even after the closing #endif for
> STANDALONE.

Thanks,

	Jeremy.




More information about the samba-technical mailing list