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

Re: [MiNT] USERDEF stack size



Vincent Rivière wrote:
    short vdi_intin[VDI_INTINMAX];
    short vdi_intout[VDI_INTOUTMAX];

I really would like to solve that issue in GemLib. Because of that, if we currently rebuild QED from sources, the resulting executable can't run on single TOS. Also, I would like to build QED for ColdFire.

Do everybody agree to replace the above lines by malloc(), everywhere in the GemLib where VDI_INTINMAX and VDI_INTOUTMAX are used ?

What is the right thing to do if malloc() returns NULL ?
Can GEM functions return 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.

When everybody agrees, I will provide a patch for GemLib.

--
Vincent Rivière