Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151240906
D35945.id108560.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
793 B
Referenced Files
None
Subscribers
None
D35945.id108560.diff
View Options
Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -467,10 +467,6 @@
separate header file, e.g.,
.Qq Pa extern.h .
.Pp
-Do not use the
-.Dv __P
-macro.
-.Pp
In general code can be considered
.Dq "new code"
when it makes up about 50% or more of the file(s) involved.
@@ -797,7 +793,10 @@
}
.Ed
.Pp
-When converting K&R style declarations to ANSI style, preserve
+Do not use K&R style declarations or definitions, they are obsolete
+and are forbidden in C23.
+All major compilers treat them as an error by default.
+When converting K&R style definitions to ANSI style, preserve
any comments about parameters.
.Pp
Long parameter lists are wrapped with a normal four space indent.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 1:44 AM (11 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31064707
Default Alt Text
D35945.id108560.diff (793 B)
Attached To
Mode
D35945: Style(9): Strengthen statements about not using K&R function definitions
Attached
Detach File
Event Timeline
Log In to Comment