Date: Thu, 27 Nov 2008 11:46:06 +0100 From: Erik Trulsson <ertr1013@student.uu.se> To: Ivan Voras <ivoras@gmail.com> Cc: svn-src-head@freebsd.org, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r185356 - head/sys/dev/ixgbe Message-ID: <20081127104606.GA71968@owl.midgard.homeip.net> In-Reply-To: <9bbcef730811270238k61c3e59fqee7715f017d70ccf@mail.gmail.com> References: <200811270219.mAR2Ji2M073024@svn.freebsd.org> <20081126213204.14db9a63@kan.dnsalias.net> <20081127.000621.1413927847.imp@bsdimp.com> <9bbcef730811270220h1a7f812k2ba340737132ff82@mail.gmail.com> <8663m94g30.fsf@ds4.des.no> <9bbcef730811270238k61c3e59fqee7715f017d70ccf@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 27, 2008 at 11:38:05AM +0100, Ivan Voras wrote: > 2008/11/27 Dag-Erling Sm=F8rgrav <des@des.no>: > > "Ivan Voras" <ivoras@gmail.com> writes: > >> And at least the newer GEOM code also uses c99 variable declarations > >> (not only for initializers - they were c99 from the start). > > > > I'm curious about what you mean with "c99 variable declarations". If > > you are referring to loop variable declarations, I can only find two > > cases, both in g_linux_lvm.c. Other than that and mixing declarations > > with statements (which style(9) explicitly forbids), there is no > > difference between c89 to c99 as far as variable declarations are > > concerned. >=20 > Yes, but not only loops - I mean things like: >=20 > if () { > struct *something abc; > int y; > ... > } >=20 > You'll probably find my code is one the biggest users of this style > but I've only started using it when I saw it already used. That construct is allowed in C89 as well. --=20 <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081127104606.GA71968>