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

Re: [MiNT] [PATCH] Machine dependent module path extension




On Tue, Feb 12, 2013 at 9:12 PM, Jo Even Skarstein <joska@online.no> wrote:
Maybe the type of machine should be detected at run-time and not
compile-time.
That was my first idea, too. But it's quite complicated. Currently, there's a global 'mch' macro, reflecting state of the _MCH cookie. But. As we know, _MCH isn't 100% reliable source, for example Hades, Aranym and CT60 use separate cookies. So what's happening in init_mach.c is that there's "special feature" (or so) defined and based on this two things (mch and special_hw) a nice string is shown.

Now, if we would want to make this global (useful outside init_mach.c), I'd need to either redefine meaning of the global 'mch' or to introduce another global variable (something as the special_hw). The first solution changes a lot of places, the second ... well, doesn't seem right.


--
MiKRO / Mystic Bytes
http://mikro.atari.org