Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110181034
D20448.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
922 B
Referenced Files
None
Subscribers
None
D20448.diff
View Options
Index: head/share/man/man9/style.9
===================================================================
--- head/share/man/man9/style.9
+++ head/share/man/man9/style.9
@@ -26,7 +26,7 @@
.\" From: @(#)style 1.14 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd May 28, 2019
+.Dd June 3, 2019
.Dt STYLE 9
.Os
.Sh NAME
@@ -779,8 +779,19 @@
static void
usage(void)
{
- /* Insert an empty line if the function has no local variables. */
+ /* Optional blank line goes here. */
.Ed
+.Pp
+Optionally, insert a blank line at the beginning of functions with no local
+variables.
+Older versions of this
+.Nm
+document required the blank line convention, so it is widely used in existing
+code.
+.Pp
+Do not insert a blank line at the beginning of functions with local variables.
+Instead, these should have local variable declarations first, followed by one
+blank line, followed by the first statement.
.Pp
Use
.Xr printf 3 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 15, 5:47 PM (10 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16662507
Default Alt Text
D20448.diff (922 B)
Attached To
Mode
D20448: style.9: Codify tolerance for eliding blank lines
Attached
Detach File
Event Timeline
Log In to Comment