Re: style.9 typos

2021-07-16 Thread Ingo Schwarze
Hi Claudio and Todd, Todd C. Miller wrote on Thu, Jul 15, 2021 at 02:01:23PM -0600: > You are expected to know that ^I (control-I) is the tab character. > Using ^I instead of a literal tab character in the manual was > supposed to make it clear that this is a tab and not a series of > spaces but

Re: style.9 typos

2021-07-15 Thread Todd C . Miller
You are expected to know that ^I (control-I) is the tab character. Using ^I instead of a literal tab character in the manual was supposed to make it clear that this is a tab and not a series of spaces but maybe it is not so obvious... - todd

style.9 typos

2021-07-15 Thread claudioecorrea
--- src/share/man/man9/style.9.orig Mon Jan 25 17:23:08 2021 +++ src/share/man/man9/style.9 Thu Jul 15 16:44:09 2021 @@ -194,9 +194,9 @@ by size (largest to smallest), then by alphabetical or The first category normally doesn't apply, but there are exceptions. Each one gets its own line

Re: style(9) question on typedef and struct tag

2011-04-23 Thread Mike Williams
On 04/22/11 18:44, Marc Espie wrote: On Fri, Apr 22, 2011 at 12:39:28PM -0400, Ted Unangst wrote: On Fri, Apr 22, 2011 at 5:16 AM, Mike Williamsob...@eandem.co.uk wrote: The style(9) man page contains the statement Don't use the same name for a struct tag and a typedef, as this makes

style(9) question on typedef and struct tag

2011-04-22 Thread Mike Williams
[asbestos suit donned? check!] The style(9) man page contains the statement Don't use the same name for a struct tag and a typedef, as this makes the code unusable from C++. My question is how does this make the code unusable from C++? An interweb search doesn't turn up any examples

Re: style(9) question on typedef and struct tag

2011-04-22 Thread Remco
Mike Williams wrote: [asbestos suit donned? check!] The style(9) man page contains the statement Don't use the same name for a struct tag and a typedef, as this makes the code unusable from C++. My question is how does this make the code unusable from C++? An interweb search

Re: style(9) question on typedef and struct tag

2011-04-22 Thread Mike Williams
On 04/22/11 14:21, Remco wrote: Mike Williams wrote: [asbestos suit donned? check!] The style(9) man page contains the statement Don't use the same name for a struct tag and a typedef, as this makes the code unusable from C++. My question is how does this make the code unusable from

Re: style(9) question on typedef and struct tag

2011-04-22 Thread Michael Small
Remco re...@d-compu.dyndns.org writes: Mike Williams wrote: [asbestos suit donned? check!] The style(9) man page contains the statement Don't use the same name for a struct tag and a typedef, as this makes the code unusable from C++. My question is how does this make the code

Re: style(9) question on typedef and struct tag

2011-04-22 Thread Ted Unangst
On Fri, Apr 22, 2011 at 5:16 AM, Mike Williams ob...@eandem.co.uk wrote: The style(9) man page contains the statement Don't use the same name for a struct tag and a typedef, as this makes the code unusable from C++. My question is how does this make the code unusable from C++? espie

Re: style(9) question on typedef and struct tag

2011-04-22 Thread Marc Espie
On Fri, Apr 22, 2011 at 12:39:28PM -0400, Ted Unangst wrote: On Fri, Apr 22, 2011 at 5:16 AM, Mike Williams ob...@eandem.co.uk wrote: The style(9) man page contains the statement Don't use the same name for a struct tag and a typedef, as this makes the code unusable from C++. My

indent style(9)

2011-01-04 Thread Gregory Edigarov
Hi, Just wondering, which settings for indent correspond to style(9)? -- With best regards, Gregory Edigarov

Re: indent style(9)

2011-01-04 Thread Anthony J. Bentley
Hi Gregory, Just wondering, which settings for indent correspond to style(9)? I have had good luck with these: -bap -br -ce -ci4 -cli0 -d0 -di0 -i8 -ip -l79 -nbc -ncdb -ndj -ei -nfc1 -nlp -npcs -psl -sc -sob I believe I got these from a NetBSD mailing list. Maybe someone interested should

Re: indent style(9)

2011-01-04 Thread Anthony J. Bentley
Hi Gregory, Just wondering, which settings for indent correspond to style(9)? I have had good luck with these: ... I believe I got these from a NetBSD mailing list. By the way, I highly recommend you check these against the manual rather than take my word for it. Reading the man

c-style for emacs according to style(9)

2010-07-14 Thread Christiano F. Haesbaert
Is there a official/standard c-style for emacs that conforms to style(9) ? I've ended up rolling my own with some help from n...@freenode (not nicm@) some years ago, it works *fine* for almost everything. If someone has a full-working one, could you paste it here ? follows mine: (defun new-c

Re: c-style for emacs according to style(9)

2010-07-14 Thread Paul Irofti
On Wed, Jul 14, 2010 at 02:43:42PM -0300, Christiano F. Haesbaert wrote: I've ended up rolling my own with some help from n...@freenode (not nicm@) some years ago, it works *fine* for almost everything. Just so you know, they're one and the same.

Re: c-style for emacs according to style(9)

2010-07-14 Thread Christiano F. Haesbaert
On 14 July 2010 19:17, Paul Irofti p...@irofti.net wrote: On Wed, Jul 14, 2010 at 02:43:42PM -0300, Christiano F. Haesbaert wrote: I've ended up rolling my own with some help from n...@freenode (not nicm@) some years ago, it works *fine* for almost everything. Just so you know, they're one

Re: style(9)

2007-11-09 Thread Darrin Chandler
On Fri, Nov 09, 2007 at 02:25:50PM +1030, David Walker wrote: I am thinking of doing some reformatting and prefer to do it correctly. Everything tedu said. I'll add that it's more important to understand why style(9) says what it says than to blindly obey it. The goal being to write in a clean

Re: style(9)

2007-11-08 Thread Ted Unangst
On 11/7/07, David Walker [EMAIL PROTECTED] wrote: style(9) man page (DESCRIPTION section) says: Then there's a blank line, followed by the /usr/include files. The /usr/include files should be sorted! I guess this means alphabetically. Can someone confirm or deny please? mostly

Re: style(9)

2007-11-08 Thread David Walker
Thanks Ted. I am thinking of doing some reformatting and prefer to do it correctly. Best wishes, David

style(9)

2007-11-07 Thread David Walker
Hiya. style(9) man page (DESCRIPTION section) says: Then there's a blank line, followed by the /usr/include files. The /usr/include files should be sorted! I guess this means alphabetically. Can someone confirm or deny please? Also, although not explicitly stated, it appears

style(9) and return statements

2006-04-30 Thread Matthias Kilian
Hi! I wonder what the preferred style of return statments is -- for returning simple values, both styles return foo; and return (foo); are used in the sources everythen and now. For me, the latter hurts my eyes, since return just expects an rvalue which doesn't need brackets

Re: style(9) and return statements

2006-04-30 Thread Nick Guenther
check all the examples before deciding style(9) is silent on an issue and so I did. The examples all use `return (expr);`. I didn't pursue it any further because in the two files I checked that was the style used as well, but now that I know not all programs are the same I wonder what the official word

Re: style(9) and return statements

2006-04-30 Thread Tony
I was wondering this myself last week, but I remembered that someone once said check all the examples before deciding style(9) is silent on an issue and so I did. The examples all use `return (expr);`. I didn't pursue it any further because in the two files I checked that was the style used

Re: style(9) and return statements

2006-04-30 Thread Matthias Kilian
On Sun, Apr 30, 2006 at 09:18:05PM +0100, Nick Guenther wrote: I was wondering this myself last week, but I remembered that someone once said check all the examples before deciding style(9) is silent on an issue and so I did. The examples all use `return (expr);`. Have a look at usr.bin/ftp

Re: style(9) and return statements

2006-04-30 Thread Matthias Kilian
On Sun, Apr 30, 2006 at 03:44:13PM -0500, [EMAIL PROTECTED] wrote: There is a return (eight); in man style. But in err() context. I suspect that bad things can happen with macros when you do only sensible things with parens. Good point, but if a macro `foo' works with return