DragonFly commits List (threaded) for 2004-09
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: cvs commit: src/sys/dev/netif/ie
:joerg 2004/09/15 13:05:13 PDT
:
:DragonFly src repository
:
: Modified files:
: sys/dev/netif/ie if_ie.c
: Log:
: Move the timer declaration a bit up. I don't know why GCC 3.4 works and
: 2.95 doesn't.
:
: Revision Changes Path
: 1.16 +2 -2 src/sys/dev/netif/ie/if_ie.c
:
:
:http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ie/if_ie.c.diff?r1=1.15&r2=1.16&f=u
It's because Gcc-3.x allows declarations to occur after statements,
whereas 2.95 only allows declarations to occur at the beginning of
a block. Traditionally C has only allowed declarations to occur
at the beginning of a block. It's either a GCCism or a C99 thing.
I think it's a dumb idea myself (gcc allowing declarations after
statements), C is messy enough as it stands. So its just as well
that you fixed it :-)
-Matt
Matthew Dillon
<dillon@xxxxxxxxxxxxx>
{
int a;
int b;
fubar();
...
}
vs
{
fubar();
int a;
int b;
...
}
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]