Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 2004 17:13:18 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/df df.c src/bin/pax options.c src/lib/libbluetooth bluetooth.c src/lib/libbsnmp Makefile.inc src/lib/libc/gen dlfcn.c getpwent.c src/lib/libc/net gethostbydns.c src/lib/libc/rpc getnetconfig.c ...
Message-ID:  <200403051713.18571.jhb@FreeBSD.org>
In-Reply-To: <20040305201941.GA4741@ip.net.ua>
References:  <200403050810.i258AJQt098278@repoman.freebsd.org> <20040305201941.GA4741@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 05 March 2004 03:19 pm, Ruslan Ermilov wrote:
> On Fri, Mar 05, 2004 at 12:10:19AM -0800, Mark Murray wrote:
> [...]
>
> >   Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
> >   that this provokes. "Wherever possible" means "In the kernel OR NOT
> >   C++" (implying C).
>
> Can't ``#if defined(_KERNEL) || !defined(__cplusplus)'' be reduced to
> just ``#ifndef __cplusplus''?  The current version somehow implies
> that the kernel may have C++ sources, which it's not.

Some companies that deploy FreeBSD in embedded products use C++ kernel code.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403051713.18571.jhb>