weeding out c++ keywords from sys/sys

Andrew Reilly andrew-freebsd at areilly.bpc-users.org
Fri Feb 13 15:15:28 PST 2009


On Fri, Feb 13, 2009 at 08:25:31PM +0200, Andriy Gapon wrote:
> Rationale:
> There are people who write FreeBSD drivers in C++,

There are?  I can't find any in /usr/src/sys by any of the usual
suffixes.  Whatever would you want to do that for, anyway?  That
would bring a whole extra language runtime support library into the
kernel, and complicate the boot process with constructors and
what-not.

Seems like a backwards step, to me.

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.

Cheers,

Andrew


More information about the freebsd-current mailing list