weeding out c++ keywords from sys/sys

Andriy Gapon avg at icyb.net.ua
Sun Feb 15 10:41:48 PST 2009


on 15/02/2009 19:58 M. Warner Losh said the following:
> In message: <84dead720902131945s11fc5949j7125bb28b030f055 at mail.gmail.com>
>             Joseph Koshy <joseph.koshy at gmail.com> writes:
> : > Not that this should stop you from de-keywording the include
> : > files, if that takes your fancy, but permuting a variable
> : > "class" into "clazz" is a bit gruesome, imo.  Why not just comment
> : > the argument name out altogether?  It's not strictly needed in
> : > the prototype.
> : 
> : Prefixing parameter names in function prototypes with an underscore
> : should be enough.
> : 
> :       void    function(int _fd);
> : 
> : (Example taken from style(9)).
> 
> I've gone ahead and committed this suggestion to sys/conf.h.

Thank you.

-- 
Andriy Gapon


More information about the freebsd-current mailing list