Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: [pgoyette-compat] src/sys/compat



In article <Pine.NEB.4.64.1804160545130.11133%speedy.whooppee.com@localhost>,
Paul Goyette  <paul%whooppee.com@localhost> wrote:
>On Mon, 16 Apr 2018, matthew green wrote:
>
>> maya%netbsd.org@localhost writes:
>>> __BEGIN_DECLS? was that accessible from userland?
>>
>> __BEGIN_DECLS in netbsd is entirely for userland -- it is an
>> really for C++ and we don't do C++ in the kernel (please ignore
>> the libunwind behind the curtain :-).
>
>I'm failing to parse...
>
>Should I use __BEGIN_DECLS ... __END_DECLS here?  Or not?  (It looks 
>like the code on HEAD does use these macros...)
>
>The functions being declared will _not_ be used from userland.

They work either way and since the kernel does not use c++ they expand to
nothing.

christos



Home | Main Index | Thread Index | Old Index