Date: Fri, 23 Jul 1999 11:07:32 -0700 (PDT) From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: bde@zeta.org.au (Bruce Evans) Cc: gibbs@caspian.plutotech.com, green@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/inetd builtins.c Message-ID: <199907231807.LAA06531@troutmask.apl.washington.edu> In-Reply-To: <199907231745.DAA07915@godzilla.zeta.org.au> from Bruce Evans at "Jul 24, 1999 03:45:47 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote: > > >semantically limiting the scope of the variable to just the area where it > >is used is, IMO, advantageous from a maintenance standpoint. > > Nevertheless, it is explicitly forbidden in style(9) (except in > "unusually complicated" routines). > Where? I just read style(9), I can only find When declaring variables in functions declare them sorted by size, then in alphabetical order; multiple ones per line are okay. Declaring func- tions inside functions is not recommendable, since their linkage scope is always global. If a line overflows reuse the type keyword. I also note that the "sorted by size" doesn't indicate whether smallest comes first or last (although the example does suggest the order). -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907231807.LAA06531>