[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] USERDEF stack size



On Wed, 2010-12-22 at 21:29 +0100, Vincent Rivière wrote:

> What is the right thing to do if malloc() returns NULL ?

Don't trap.

> Can GEM functions return an error code ?

Yes, many VDI/AES-functions returns an error code.

> Also, I'm quite annoyed because the new version of v_gtext() and co 
> using malloc() will be a bit slower than the previous ones, and it will 
> only be useful for plain TOS. So "standard" users using only XaAES will 
> only get the drawbacks.

True, a malloc for every single v_gtext will be a real pain. In the
short term I think it's better to just make the structs static, and then
find a better solution later. I doubt that reentrancy will be a problem.
Can anybody mention a multithreaded AES-app compiled with GEMlib?

Jo Even