Date: Sat, 1 Feb 2003 15:59:43 -0800 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: Julian Elischer <julian@elischer.org> Cc: Mark Murray <mark@grondar.org>, julian@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Style fixups for proc.h Message-ID: <20030201235943.GA66200@troutmask.apl.washington.edu> In-Reply-To: <Pine.BSF.4.21.0302011502090.55342-100000@InterJet.elischer.org> References: <200302012246.h11MkEaX028068@grimreaper.grondar.org> <Pine.BSF.4.21.0302011502090.55342-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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); -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030201235943.GA66200>