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

Re: [MiNT] Patch: shel_write() did not call the PureC patcher



Hi,

On keskiviikko 21 maaliskuu 2012, Jo Even Skarstein wrote:
> Coldfire: Programs compiled with PureC is now patched also when launched
> with XaAES shel_write().

Btw. why the external prototype is define in the C-file instead
of some common header?

I would also suggest using something similar as what Linux kernel does
to make code cleaner:
----header-----
#ifdef COLDFIRE
extern void   patch_memset_purec(BASEPAGE *b);
#else
#define patch_memset_purec(b)
#endif
----c-files----
    patch_memset_purec(b);
---------------

This way the ifdef stuff is localized to appropriate headers and
C-files are clean.



	- Eero