[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/src header_info.c usiblender.c

Joe Eagar joeedh at gmail.com
Wed May 31 01:06:20 CEST 2006

Alexander Ewering wrote:
> On Tue, 30 May 2006, Joe Eagar wrote:
>> I mean you cannot call MEM_alloc_len() on a struct member, unless 
>> it's possibly the first one.
> So MEM_alloc_len() figures out what area of memory it is by the pointer's
> address, not its value? That would be odd....
Yes.  It simply returns the length of an allocated memory block.  I'm 
talking about static strings struct members, so since they're allocated 
as part of the greater memory block (struct) rather then on their own, 
MEM_alloc_len() won't work.


More information about the Bf-committers mailing list