* [U-Boot] use of C99
2009-04-08 20:25 ` Timur Tabi
@ 2009-04-08 20:46 ` Premi, Sanjeev
2009-04-08 20:57 ` Timur Tabi
2009-04-08 21:03 ` Ben Warren
2009-04-08 20:52 ` Scott Wood
2009-04-08 21:34 ` Wolfgang Denk
2 siblings, 2 replies; 29+ messages in thread
From: Premi, Sanjeev @ 2009-04-08 20:46 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: u-boot-bounces at lists.denx.de
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Timur Tabi
> Sent: Thursday, April 09, 2009 1:55 AM
> To: Jerry Van Baren
> Cc: U-Boot-Users ML; Kumar Gala
> Subject: Re: [U-Boot] use of C99
>
> On Wed, Apr 8, 2009 at 2:46 PM, Jerry Van Baren
> <gerald.vanbaren@ge.com> wrote:
>
> > ACK. ?I don't expect to see variables spring into life in
> the middle of
> > nowhere.
>
> I don't see what's wrong with that. The advantage is that the
> variable is close to where it's being used, so that you can see the
> context more easily.
>
> > 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.
>
> I don't see what the value is of limiting the lifetime of the
> variable. The compiler isn't going to use that as a hint, anyway.
> It's just going to use this for syntax checking. If you define and
> initialize a variable at the top of the function, but don't use that
> variable until a hundred lines later, the compiler is going to
> initialize the variable when it's first used, not when the function is
> first entered. Chances are it's not even going to define stack space
> for it.
One of the biggest problem is uncontrolled variable definitions that
gets even nasty when variables have same names with different types;
though under different set of #ifdefs. Quite possible for commonly
used variable names - i, ptr, tmp, etc.
I feel, here, ifdefs provide a false sense of 'enclosure' with possibility
of frequent breaches - in code (while implementing) and in simple reading
(for understanding).
~sanjeev
> > #ifdef CONFIG_COOL_FEATURE
> > ? ? ? ?{
> > ? ? ? ? ? ? ? ?u32 myvarrocks = foo * bar * bar;
> >
> > ? ? ? ? ? ? ? ?gd->neato = myvarrocks
> > ? ? ? ?}
> > #endif
> >
> > Is this an acceptable compromise?
>
> This is what we do today, and I think it's ugly.
>
> --
> Timur Tabi
> Linux kernel developer at Freescale
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>
^ permalink raw reply [flat|nested] 29+ messages in thread* [U-Boot] use of C99
2009-04-08 20:46 ` Premi, Sanjeev
@ 2009-04-08 20:57 ` Timur Tabi
2009-04-08 21:26 ` Premi, Sanjeev
2009-04-08 21:03 ` Ben Warren
1 sibling, 1 reply; 29+ messages in thread
From: Timur Tabi @ 2009-04-08 20:57 UTC (permalink / raw)
To: u-boot
Premi, Sanjeev wrote:
> One of the biggest problem is uncontrolled variable definitions that
> gets even nasty when variables have same names with different types;
> though under different set of #ifdefs. Quite possible for commonly
> used variable names - i, ptr, tmp, etc.
Then let's just say that if you're going to define a variable in the
middle of a function, it can't have the same name as another variable in
that function.
> I feel, here, ifdefs provide a false sense of 'enclosure' with possibility
> of frequent breaches - in code (while implementing) and in simple reading
> (for understanding).
Sorry, I don't understand what you're talking about. The #ifdefs are
used to enable feature-specific code on platforms that have that feature.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 20:57 ` Timur Tabi
@ 2009-04-08 21:26 ` Premi, Sanjeev
2009-04-08 21:34 ` Timur Tabi
0 siblings, 1 reply; 29+ messages in thread
From: Premi, Sanjeev @ 2009-04-08 21:26 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Timur Tabi [mailto:timur at freescale.com]
> Sent: Thursday, April 09, 2009 2:28 AM
> To: Premi, Sanjeev
> Cc: Jerry Van Baren; U-Boot-Users ML; Kumar Gala
> Subject: Re: [U-Boot] use of C99
>
> Premi, Sanjeev wrote:
>
> > One of the biggest problem is uncontrolled variable definitions that
> > gets even nasty when variables have same names with different types;
> > though under different set of #ifdefs. Quite possible for commonly
> > used variable names - i, ptr, tmp, etc.
>
> Then let's just say that if you're going to define a variable in the
> middle of a function, it can't have the same name as another
> variable in
> that function.
>
> > I feel, here, ifdefs provide a false sense of 'enclosure'
> with possibility
> > of frequent breaches - in code (while implementing) and in
> simple reading
> > (for understanding).
>
> Sorry, I don't understand what you're talking about. The #ifdefs are
> used to enable feature-specific code on platforms that have
> that feature.
I was referring to declaring variable within #ifdefs with belief that
use will be contained.
e.g.
#ifdef CONFIG_COOL_FEATURE
int i;
int* ptr ;
...
...
#endif
...
... 2 screenful down; in same function...
...
#ifdef CONFIG_HOT_FEATURE
u32 i;
void* ptr;
...
...
#endif
Maybe for sometime the usage seems contained. Until someone decides to have
both the COOL and HOT feature.
~sanjeev
>
> --
> Timur Tabi
> Linux kernel developer at Freescale
>
>
^ permalink raw reply [flat|nested] 29+ messages in thread* [U-Boot] use of C99
2009-04-08 21:26 ` Premi, Sanjeev
@ 2009-04-08 21:34 ` Timur Tabi
0 siblings, 0 replies; 29+ messages in thread
From: Timur Tabi @ 2009-04-08 21:34 UTC (permalink / raw)
To: u-boot
Premi, Sanjeev wrote:
> Maybe for sometime the usage seems contained. Until someone decides to have
> both the COOL and HOT feature.
And that's why I said that U-Boot can allow in-function variable
declarations, but all variables must have unique names. The only
exception to that rule can be variables declared at the top of iterators.
That's just my two cents.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 20:46 ` Premi, Sanjeev
2009-04-08 20:57 ` Timur Tabi
@ 2009-04-08 21:03 ` Ben Warren
2009-04-08 21:23 ` Premi, Sanjeev
1 sibling, 1 reply; 29+ messages in thread
From: Ben Warren @ 2009-04-08 21:03 UTC (permalink / raw)
To: u-boot
Premi, Sanjeev wrote:
>> -----Original Message-----
>> From: u-boot-bounces at lists.denx.de
>> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Timur Tabi
>> Sent: Thursday, April 09, 2009 1:55 AM
>> To: Jerry Van Baren
>> Cc: U-Boot-Users ML; Kumar Gala
>> Subject: Re: [U-Boot] use of C99
>>
>> On Wed, Apr 8, 2009 at 2:46 PM, Jerry Van Baren
>> <gerald.vanbaren@ge.com> wrote:
>>
>>
>>> ACK. I don't expect to see variables spring into life in
>>>
>> the middle of
>>
>>> nowhere.
>>>
>> I don't see what's wrong with that. The advantage is that the
>> variable is close to where it's being used, so that you can see the
>> context more easily.
>>
>>
>>> 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.
>>>
>> I don't see what the value is of limiting the lifetime of the
>> variable. The compiler isn't going to use that as a hint, anyway.
>> It's just going to use this for syntax checking. If you define and
>> initialize a variable at the top of the function, but don't use that
>> variable until a hundred lines later, the compiler is going to
>> initialize the variable when it's first used, not when the function is
>> first entered. Chances are it's not even going to define stack space
>> for it.
>>
>
> One of the biggest problem is uncontrolled variable definitions that
> gets even nasty when variables have same names with different types;
> though under different set of #ifdefs. Quite possible for commonly
> used variable names - i, ptr, tmp, etc.
>
>
I'm showing extreme ignorance here, but does C99 let you do this?
for (int i = 0; i < x ; i++) ?
Doing a lot of C++ has rotted my brain, but this is one thing I like.
regards,
Ben
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 21:03 ` Ben Warren
@ 2009-04-08 21:23 ` Premi, Sanjeev
0 siblings, 0 replies; 29+ messages in thread
From: Premi, Sanjeev @ 2009-04-08 21:23 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Ben Warren [mailto:biggerbadderben at gmail.com]
> Sent: Thursday, April 09, 2009 2:33 AM
> To: Premi, Sanjeev
> Cc: Timur Tabi; Jerry Van Baren; U-Boot-Users ML; Kumar Gala
> Subject: Re: [U-Boot] use of C99
>
> Premi, Sanjeev wrote:
> >> -----Original Message-----
> >> From: u-boot-bounces at lists.denx.de
> >> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Timur Tabi
> >> Sent: Thursday, April 09, 2009 1:55 AM
> >> To: Jerry Van Baren
> >> Cc: U-Boot-Users ML; Kumar Gala
> >> Subject: Re: [U-Boot] use of C99
> >>
> >> On Wed, Apr 8, 2009 at 2:46 PM, Jerry Van Baren
> >> <gerald.vanbaren@ge.com> wrote:
> >>
> >>
> >>> ACK. I don't expect to see variables spring into life in
> >>>
> >> the middle of
> >>
> >>> nowhere.
> >>>
> >> I don't see what's wrong with that. The advantage is that the
> >> variable is close to where it's being used, so that you can see the
> >> context more easily.
> >>
> >>
> >>> 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.
> >>>
> >> I don't see what the value is of limiting the lifetime of the
> >> variable. The compiler isn't going to use that as a hint, anyway.
> >> It's just going to use this for syntax checking. If you define and
> >> initialize a variable at the top of the function, but
> don't use that
> >> variable until a hundred lines later, the compiler is going to
> >> initialize the variable when it's first used, not when the
> function is
> >> first entered. Chances are it's not even going to define
> stack space
> >> for it.
> >>
> >
> > One of the biggest problem is uncontrolled variable definitions that
> > gets even nasty when variables have same names with different types;
> > though under different set of #ifdefs. Quite possible for commonly
> > used variable names - i, ptr, tmp, etc.
> >
> >
> I'm showing extreme ignorance here, but does C99 let you do this?
>
> for (int i = 0; i < x ; i++) ?
That's much better contained than declaring in a ifdef.
> Doing a lot of C++ has rotted my brain, but this is one thing I like.
I love C++; still avoid declare as you go.
Iterators (as you mention above) are only exception.
~sanjeev
>
> regards,
> Ben
>
>
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 20:25 ` Timur Tabi
2009-04-08 20:46 ` Premi, Sanjeev
@ 2009-04-08 20:52 ` Scott Wood
2009-04-08 21:01 ` Timur Tabi
2009-04-08 21:34 ` Wolfgang Denk
2 siblings, 1 reply; 29+ messages in thread
From: Scott Wood @ 2009-04-08 20:52 UTC (permalink / raw)
To: u-boot
Timur Tabi wrote:
> On Wed, Apr 8, 2009 at 2:46 PM, Jerry Van Baren <gerald.vanbaren@ge.com> wrote:
>
>> ACK. I don't expect to see variables spring into life in the middle of
>> nowhere.
>
> I don't see what's wrong with that. The advantage is that the
> variable is close to where it's being used, so that you can see the
> context more easily.
Agreed. In many cases it reduces clutter by eliminating the need for
separate declaration and assignment.
> I don't see what the value is of limiting the lifetime of the
> variable.
It frees the variable up for later such blocks to use. As does
declaring iterators inside a for loop, but I guess that's forbidden as
well. :-)
> It's just going to use this for syntax checking. If you define and
> initialize a variable at the top of the function, but don't use that
> variable until a hundred lines later, the compiler is going to
> initialize the variable when it's first used, not when the function is
> first entered. Chances are it's not even going to define stack space
> for it.
Chances are it will allocate all stack space for all variables up front,
regardless of where they're declared.
>> #ifdef CONFIG_COOL_FEATURE
>> {
>> u32 myvarrocks = foo * bar * bar;
>>
>> gd->neato = myvarrocks
>> }
>> #endif
>>
>> Is this an acceptable compromise?
>
> This is what we do today, and I think it's ugly.
Yes. But not as ugly as having two #ifdef blocks.
-Scott
^ permalink raw reply [flat|nested] 29+ messages in thread* [U-Boot] use of C99
2009-04-08 20:52 ` Scott Wood
@ 2009-04-08 21:01 ` Timur Tabi
2009-04-08 22:26 ` Scott Wood
0 siblings, 1 reply; 29+ messages in thread
From: Timur Tabi @ 2009-04-08 21:01 UTC (permalink / raw)
To: u-boot
Scott Wood wrote:
> It frees the variable up for later such blocks to use. As does
> declaring iterators inside a for loop, but I guess that's forbidden as
> well. :-)
I'm not sure whether we want to allow the same variable to be defined
more than once, even with the same type, inside a function.
> Chances are it will allocate all stack space for all variables up front,
> regardless of where they're declared.
Yes, but it many cases it won't allocate any stack space at all because
it will just keep the variable in a register. My point was that if a
variable is defined later in a function, then it's more likely to have
limited scope, so the compiler will be more likely to use a register
instead of stack to store it.
>> This is what we do today, and I think it's ugly.
>
> Yes. But not as ugly as having two #ifdef blocks.
Agreed, but I don't consider it to be much of a compromise.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 21:01 ` Timur Tabi
@ 2009-04-08 22:26 ` Scott Wood
0 siblings, 0 replies; 29+ messages in thread
From: Scott Wood @ 2009-04-08 22:26 UTC (permalink / raw)
To: u-boot
Timur Tabi wrote:
> Scott Wood wrote:
>
>> It frees the variable up for later such blocks to use. As does
>> declaring iterators inside a for loop, but I guess that's forbidden as
>> well. :-)
>
> I'm not sure whether we want to allow the same variable to be defined
> more than once, even with the same type, inside a function.
What's wrong with this:?
for (i = 0; i < n; i++) {
int j;
...
}
for (i = 0; i < m; i++) {
int j;
...
}
>> Chances are it will allocate all stack space for all variables up front,
>> regardless of where they're declared.
>
> Yes, but it many cases it won't allocate any stack space at all because
> it will just keep the variable in a register. My point was that if a
> variable is defined later in a function, then it's more likely to have
> limited scope, so the compiler will be more likely to use a register
> instead of stack to store it.
I don't think it will make a difference. The compiler knows what the
lifetime of the variable is, regardless of where you declare it.
-Scott
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 20:25 ` Timur Tabi
2009-04-08 20:46 ` Premi, Sanjeev
2009-04-08 20:52 ` Scott Wood
@ 2009-04-08 21:34 ` Wolfgang Denk
2009-04-08 21:38 ` Timur Tabi
2009-04-08 22:28 ` Scott Wood
2 siblings, 2 replies; 29+ messages in thread
From: Wolfgang Denk @ 2009-04-08 21:34 UTC (permalink / raw)
To: u-boot
Dear Timur Tabi,
In message <ed82fe3e0904081325s560fb99cg83b6aaa9176cd8db@mail.gmail.com> you wrote:
>
> I don't see what's wrong with that. The advantage is that the
> variable is close to where it's being used, so that you can see the
> context more easily.
Bear with an old man like me. I am used to the habit that variables
get decleared at the begin of a block, not in the middle of it. When
searching for the declaration of a variable, I find it a major PITA if
I have to scan the whole source file instea dof just looking at the
first few lines of a block.
> I don't see what the value is of limiting the lifetime of the
> variable. The compiler isn't going to use that as a hint, anyway.
Not the compiler, but humans like me. I have just a small window of
lines I can really focus on, and the smaller a block of code
(including the needed variable declarations), the easier I get the
impression I understand it.
> It's just going to use this for syntax checking. If you define and
> initialize a variable at the top of the function, but don't use that
> variable until a hundred lines later, the compiler is going to
> initialize the variable when it's first used, not when the function is
> first entered. Chances are it's not even going to define stack space
> for it.
Keep in mind that we don't write the code for the compiler, but for
the human being that comes after us and that has to maintain that
code.
> > #ifdef CONFIG_COOL_FEATURE
> > {
> > u32 myvarrocks = foo * bar * bar;
> >
> > gd->neato = myvarrocks
> > }
> > #endif
> >
> > Is this an acceptable compromise?
>
> This is what we do today, and I think it's ugly.
It is ugly, but much less ugly than variable declarations right in the
middle of 200 lines of code.
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
At the source of every error which is blamed on the computer you will
find at least two human errors, including the error of blaming it on
the computer.
^ permalink raw reply [flat|nested] 29+ messages in thread* [U-Boot] use of C99
2009-04-08 21:34 ` Wolfgang Denk
@ 2009-04-08 21:38 ` Timur Tabi
2009-04-08 22:39 ` Graeme Russ
2009-04-08 22:28 ` Scott Wood
1 sibling, 1 reply; 29+ messages in thread
From: Timur Tabi @ 2009-04-08 21:38 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> Bear with an old man like me. I am used to the habit that variables
> get decleared at the begin of a block, not in the middle of it. When
> searching for the declaration of a variable, I find it a major PITA if
> I have to scan the whole source file instea dof just looking at the
> first few lines of a block.
This is why I use an advanced programmer's editor that brings me to the
definition of the variable under the cursor with a single keystroke.
> Not the compiler, but humans like me. I have just a small window of
> lines I can really focus on, and the smaller a block of code
> (including the needed variable declarations), the easier I get the
> impression I understand it.
In this case, it would be easier for you if the variable were declared
next to the code that uses it.
>> This is what we do today, and I think it's ugly.
>
> It is ugly, but much less ugly than variable declarations right in the
> middle of 200 lines of code.
This is where I disagree.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 21:38 ` Timur Tabi
@ 2009-04-08 22:39 ` Graeme Russ
2009-04-08 22:45 ` Timur Tabi
0 siblings, 1 reply; 29+ messages in thread
From: Graeme Russ @ 2009-04-08 22:39 UTC (permalink / raw)
To: u-boot
On Thu, Apr 9, 2009 at 7:38 AM, Timur Tabi <timur@freescale.com> wrote:
> Wolfgang Denk wrote:
>
>> Bear with an old man like me. I am used to the habit that variables
>> get decleared at the begin of a block, not in the middle of it. When
>> searching for the declaration of a variable, I find it a major PITA if
>> I have to scan the whole source file instea dof just looking at the
>> first few lines of a block.
I'll second that
>
> This is why I use an advanced programmer's editor that brings me to the
> definition of the variable under the cursor with a single keystroke.
>
What if _MY_ favourite editor doesn't. Or what if I don't have access to
it because I'm looking at the code at work, or on a friends computer?
>> Not the compiler, but humans like me. I have just a small window of
>> lines I can really focus on, and the smaller a block of code
>> (including the needed variable declarations), the easier I get the
>> impression I understand it.
That is the key - half the time #ifdef COOL_FEATURE in the middle of a
function really means that the feature needs to be put in another
function
>
> In this case, it would be easier for you if the variable were declared
> next to the code that uses it.
True and correct, but it can often be done so in another function
>
>>> This is what we do today, and I think it's ugly.
>>
>> It is ugly, but much less ugly than variable declarations right in the
>> middle of 200 lines of code.
200 lines of code is much more ugly
Regards,
Graeme
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 22:39 ` Graeme Russ
@ 2009-04-08 22:45 ` Timur Tabi
2009-04-08 22:59 ` Wolfgang Denk
0 siblings, 1 reply; 29+ messages in thread
From: Timur Tabi @ 2009-04-08 22:45 UTC (permalink / raw)
To: u-boot
Graeme Russ wrote:
> What if _MY_ favourite editor doesn't.
The point I'm trying to make is that I have tools at my disposal that
make certain tasks easier for me, allowing me to alter my coding style
and get the best of both worlds.
> Or what if I don't have access to
> it because I'm looking at the code at work, or on a friends computer?
Then it will be more difficult for you. I have this problem sometimes.
That's why I try to avoid using another tool as much as possible.
It's like complaining to someone who has a car that you only have a
bicycle and you have to commute 20 miles to get to work. The person who
has a car is obviously going to tell you that your life will be easier
if you get a car also.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 22:45 ` Timur Tabi
@ 2009-04-08 22:59 ` Wolfgang Denk
2009-04-08 23:09 ` Scott Wood
0 siblings, 1 reply; 29+ messages in thread
From: Wolfgang Denk @ 2009-04-08 22:59 UTC (permalink / raw)
To: u-boot
Dear Timur Tabi,
In message <49DD290A.9010306@freescale.com> you wrote:
>
> It's like complaining to someone who has a car that you only have a
> bicycle and you have to commute 20 miles to get to work. The person who
> has a car is obviously going to tell you that your life will be easier
> if you get a car also.
The person with the bicycle might ask you why you require him to
contribute to air pollution and climate changes and all these things
when you could as well put the target he has to reach just 200 meters
from his home. Not everything that can be done is a good thing to do.
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
Computers are not intelligent. They only think they are.
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 22:59 ` Wolfgang Denk
@ 2009-04-08 23:09 ` Scott Wood
0 siblings, 0 replies; 29+ messages in thread
From: Scott Wood @ 2009-04-08 23:09 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> Dear Timur Tabi,
>
> In message <49DD290A.9010306@freescale.com> you wrote:
>> It's like complaining to someone who has a car that you only have a
>> bicycle and you have to commute 20 miles to get to work. The person who
>> has a car is obviously going to tell you that your life will be easier
>> if you get a car also.
>
> The person with the bicycle might ask you why you require him to
> contribute to air pollution and climate changes and all these things
> when you could as well put the target he has to reach just 200 meters
> from his home. Not everything that can be done is a good thing to do.
Indeed, having the variable declaration close by to where it's used
*does* make things easier. :-)
-Scott
^ permalink raw reply [flat|nested] 29+ messages in thread
* [U-Boot] use of C99
2009-04-08 21:34 ` Wolfgang Denk
2009-04-08 21:38 ` Timur Tabi
@ 2009-04-08 22:28 ` Scott Wood
1 sibling, 0 replies; 29+ messages in thread
From: Scott Wood @ 2009-04-08 22:28 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> It is ugly, but much less ugly than variable declarations right in the
> middle of 200 lines of code.
200-line functions are ugly no matter what variable declaration style
you use. :-)
-Scott
^ permalink raw reply [flat|nested] 29+ messages in thread