On Thu, Nov 27, 2008 at 11:38:05AM +0100, Ivan Voras wrote:
> 2008/11/27 Dag-Erling Smørgrav <[EMAIL PROTECTED]>:
> > "Ivan Voras" <[EMAIL PROTECTED]> 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.

That construct is allowed in C89 as well.





-- 
<Insert your favourite quote here.>
Erik Trulsson
[EMAIL PROTECTED]
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to