Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 2009 19:11:58 +0100
From:      Christoph Mallon <christoph.mallon@gmx.de>
To:        Michael Butler <imb@protected-networks.net>
Cc:        Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>, Bruce Simpson <bms@incunabulum.net>, freebsd-current@freebsd.org, Andriy Gapon <avg@icyb.net.ua>
Subject:   Re: weeding out c++ keywords from sys/sys
Message-ID:  <49985AEE.1010709@gmx.de>
In-Reply-To: <49985807.805@protected-networks.net>
References:  <4995BB1B.7060201@icyb.net.ua>	<20090213231513.GA20223@duncan.reilly.home>	<4997F105.5020409@icyb.net.ua>	<499811DF.6030905@incunabulum.net>	<20090215151318.0d17bfb9@ernst.jennejohn.org>	<49983868.5010107@incunabulum.net>	<20090215182420.774b90c3@ernst.jennejohn.org> <49985807.805@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Butler schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I know that using a "wrapper", something like:
> 
> #ifdef __cplusplus
> namespace __whatever
> {
>   extern "C"
>   {
> #endif
> 
> 	[ .. bunch of C prototypes .. ]
> 
> #ifdef __cplusplus
> }
> #endif
> 
>  .. stops C++ from mangling the prototyped functions so they'll link
> correctly but does it temporarily disable the "reserved word" tests?
> Should it? ;-)

No, it doesn't. extern $STRING (the standard only requires "C" and 
"C++", but there can be more) just changes the linkage of declarations 
(name mangling, calling convention).



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