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

Ton Roosendaal ton at blender.org
Tue May 30 14:51:23 CEST 2006


> Ton Roosendaal wrote:
>> Hi,
>> BTW; there's a BLI_dynstr module too, but hardly used and confusing   
>> design.
>> Can be much more simple.
> I took a quick look in my (possibly outdated) CVS BF-Blender tree, and
> it had only five public functions (create, destroy, append, get, and
> get_length). Looked very straight-forward, although with such a thin  
> it's perhaps not very useful (which, of course, might be why it's not
> being used :).

I would make a compatible system, so traditional strings and  
'dynstring' can be used both. Just by still using char pointers. That's  
why I mentioned our malloc system, you can use that to find out if the  
string is actually allocated, to prevent errors.

Further it'll fit in SNDA simply, you can then call standard string  
library functions too, and all other string-eating stuff in Blender.


> I wrote a very similiar (from the API) module for Purple, which might
> be interesting as inspiration or whatever. It's here, for the curious:
> <http://projects.blender.org/viewcvs/viewcvs.cgi/purple/dynstr.h? 
> rev=1.7&cvsroot=verse&content-type=text/vnd.viewcvs-markup>.
> Not sure if the comment about UTF-8 is still valid, btw. I'm not even
> sure if something like that was what was meant by a "generic string
> manipulation library", heh.
> Regards,
> /Emil
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
Ton Roosendaal  Blender Foundation ton at blender.org  

More information about the Bf-committers mailing list