Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107763866
D14051.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
784 B
Referenced Files
None
Subscribers
None
D14051.diff
View Options
Index: head/share/man/man9/style.9
===================================================================
--- head/share/man/man9/style.9
+++ head/share/man/man9/style.9
@@ -763,17 +763,9 @@
}
.Ed
.Pp
-Old-style function declarations look like this:
-.Bd -literal
-static char *
-function(a1, a2, fl, a4)
- int a1, a2; /* Declare ints, too, do not default them. */
- float fl; /* Beware double vs. float prototype differences. */
- int a4; /* List in order declared. */
-{
-.Ed
+When converting K&R style declarations to ANSI style, preserve
+any comments about parameters.
.Pp
-Use ANSI function declarations unless you explicitly need K&R compatibility.
Long parameter lists are wrapped with a normal four space indent.
.Pp
Variable numbers of arguments should look like this:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 1:08 AM (12 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15911214
Default Alt Text
D14051.diff (784 B)
Attached To
Mode
D14051: Remove K&R stuff: never use it in new code.
Attached
Detach File
Event Timeline
Log In to Comment