
18 Nov
2008
18 Nov
'08
3:41 a.m.
Stefan Roese wrote:
This is ok. I don't know why people prefers alias, though :-)
Just because we don't need the ugly #ifdef's by using weak aliases. It has some drawbacks of course but in general the resulting source code looks "cleaner".
I was being vague. I prefers something like below, because I don't want to have a dummy & empty function just for the `alias'.
int __attribute__((weak)) board_early_init_f(void) { return 0; }
But that's not a big deal. Using weak function is ok, of course. Sorry for the noise.
Thanks,
--
Shinya Kuribayashi
NEC Electronics