On Sat 01 Feb, Steve Kargl wrote: > From: Steve Kargl <[EMAIL PROTECTED]> > To: Julian Elischer <[EMAIL PROTECTED]> > Cc: Mark Murray <[EMAIL PROTECTED]>, [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: Re: Style fixups for proc.h > > On Sat, Feb 01, 2003 at 03:04:32PM -0800, Julian Elischer wrote: > > I don't know about the protection with a '_'. > > > > It's not standard and usually the name matches that used in the actual > > function. > > > > It's certainly not part of style(9) that I've ever noticed > > and it's generally noy done that way.. is there a move to do this on all > > the other files? > > > > man 9 style > > In header files visible to userland applications, prototypes that are > visible must use either ``protected'' names (ones beginning with an > underscore) or no names with the types. It is preferable to use pro- > tected names. E.g., use: > > void function(int); > > or: > > void function(int _fd); >
Since having actual names in can be helpful if the names are relevant, but having dozens of *_p floating all over the place is not more easily readable, why not leave names out completely when they are not relevant and protect with the underscore when they are? This agrees with style(9). Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message