[U-Boot] use of C99
Wolfgang Denk
wd at denx.de
Wed Apr 8 23:27:22 CEST 2009
Dear Jerry Van Baren,
In message <49DCFF1D.6080006 at ge.com> you wrote:
>
> If I'm not confused, I've seen block-local u-boot variables, has the
> advantages of being more distinctive and limits the lifetime of the
> variable.
>
> #ifdef CONFIG_COOL_FEATURE
> {
> u32 myvarrocks = foo * bar * bar;
>
> gd->neato = myvarrocks
> }
> #endif
>
> Is this an acceptable compromise?
Yes, if really necessary, this can be done.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Of all the things I've lost, I miss my mind the most.
More information about the U-Boot
mailing list