Date: Fri, 20 Jul 2001 10:23:49 -0600 From: Warner Losh <imp@harmony.village.org> To: Ruslan Ermilov <ru@FreeBSD.org> Cc: Bruce Evans <bde@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 style.9 Message-ID: <200107201623.f6KGNno66864@harmony.village.org> In-Reply-To: Your message of "Fri, 20 Jul 2001 11:33:10 %2B0300." <20010720113310.C30828@sunbay.com> References: <20010720113310.C30828@sunbay.com> <200107191803.f6JI3he58920@freefall.freebsd.org> <20010719152744.A37403@sneakerz.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010720113310.C30828@sunbay.com> Ruslan Ermilov writes: : This is using style(9)'s second-level of four indents rule. : But, strictly speaking, `else if' is not an operator, this : is `else' operator followed by the `if' operator. So if we : would use the second-level indent of four spaces relatively : to the `if' operator, we would get: : : if (mylevel == SLC_DEFAULT) { : slctab[(int)func].current.flag = flag; : slctab[(int)func].current.val = val; : flag |= SLC_ACK; : } else if (hislevel == SLC_CANTCHANGE && : mylevel == SLC_CANTCHANGE) { : flag &= ~SLC_LEVELBITS; : flag |= SLC_NOSUPPORT; : slctab[(int)func].current.flag = flag; : } : : Which is much better, no? Hell, but then, I guess, we would need : to indent lines within `else if' block relative to `if' as well. I don't think it is better. If nothing else, emacs will have a harder time doing that because you are indenting 4 spaces most of the time, and 11 in this case. :-( Warner 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?200107201623.f6KGNno66864>