Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2008 11:38:05 +0100
From:      "Ivan Voras" <ivoras@gmail.com>
To:        "=?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?=" <des@des.no>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r185356 - head/sys/dev/ixgbe
Message-ID:  <9bbcef730811270238k61c3e59fqee7715f017d70ccf@mail.gmail.com>
In-Reply-To: <8663m94g30.fsf@ds4.des.no>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

2008/11/27 Dag-Erling Smørgrav <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.

Yes, but not only loops - I mean things like:

if () {
  struct *something abc;
  int y;
  ...
}

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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9bbcef730811270238k61c3e59fqee7715f017d70ccf>