
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/04/2010 12:00 PM, Marius Stoica wrote:
It's possible for a few of the primitives and more basic functions, but anything that has to allocate a temporary integer_t needs the full-fat version, or it won't know how to allocate and deallocate it properly. Someone using the library for a security program would be put out to discover that temporary variables ignored his stated allocator and Secure preference, for instance.
Isn't it possible to have a pointer to a function that does allocation/dealocation and is instantiated separately? And keep the pointer in data_t ?
I thought about it before, and couldn't see a way. But I was just working on that part, and your message prompted me to reevaluate it... I think I *do* see a way now. I'll see if I can explore it into existence. :-) - -- Chad Nelson Oak Circle Software, Inc. * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwJGJUACgkQp9x9jeZ9/wQz9wCgofCygPS5ES0/ioCojGVh2l+3 yVwAoLLXbsH+LuSv0cQRGkZSPxDDWWI/ =DwHi -----END PGP SIGNATURE-----