lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0912181203040.3223@hs20-bc2-1.build.redhat.com>
Date:	Fri, 18 Dec 2009 12:09:28 -0500 (EST)
From:	Mikulas Patocka <mpatocka@...hat.com>
To:	Linus Torvalds <torvalds@...ux-foundation.org>
cc:	kevin granade <kevin.granade@...il.com>,
	Krzysztof Halasa <khc@...waw.pl>, Valdis.Kletnieks@...edu,
	Paul Mundt <lethal@...ux-sh.org>, linux-kernel@...r.kernel.org,
	Alasdair G Kergon <agk@...hat.com>, dm-devel@...hat.com
Subject: Re: [PATCH] Drop 80-character limit in checkpatch.pl

On Fri, 18 Dec 2009, Linus Torvalds wrote:

> On Fri, 18 Dec 2009, Mikulas Patocka wrote:
> >
> > But think what happens when someone views that 100-char code on 80-char 
> > terminal (or for example 94-char, that I used for some times too) --- 
> > every second line will be wasted with just 20 characters on the left.
> 
> What kind of CRAZY crap argument is that?
> 
> The current rule is 80 characters - but how many lines are actually even 
> close to 80 characters long? Very few.
> 
> So that "every second line" statement is pure and utter idiocy. Instead, 
> what you get is totally the reverse: instead of wasting two lines _anyway_ 
> due to a hard-newline, you often get a single line instead (since most of 
> us don't work in 24x80 windows to begin with).
> 
> 			Linus

Function declarations are often larger than 80 characters. And if you wrap 
them at 100, you are wasting every second line on 80-character display.

If you make line length unlimited, the space will be used optimally on all 
displays --- a function with 200 character declaration will use 3 lines on 
80-character display and 2 lines on 100-character display.

And besides --- wrapping at 100 doesn't fix the initial problem (why I 
posted this thread) --- that making any modification to the function 
header or long expression requires the user to manually realign the 
arguments.

Mikulas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ