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

Re: [MiNT] booting and _mint_setenv



Well, yes, if we don't really need it then it would be ok. Actually when running mint from the AUTO folder then it should not harm anyway.

BTW: Do you think releasing it would not crash? I think it actually points somewhere to the commandline space which is IIRC shared in SingleTOS (I use TOS 4.04). So I would better just set it to NULL and let the _mint_setenv() do its work.

regards

STan

Konrad Kokoszkiewicz wrote:
With that the _mint_setenv() doesn't need to be changed and would
look fine. Frank?


Wouldn't it be better to just release the old TOS environment (with TOS
function Mfree(_base->p_env)), zero out the pointer, and then allocate (with
MiNT functions) new block of RAM and setup it as empty environment?

This was things remain elegant, and we don't need TOS environment anyways.

--
CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to juz natura pospólstwa, albo sluzalczo sie plaszczy,
** albo bezczelnie sie panoszy. (Liwiusz XXIV, 25).