Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 2009 12:59:35 -0500
From:      Michael Butler <imb@protected-networks.net>
To:        gary.jennejohn@freenet.de
Cc:        Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>, Bruce Simpson <bms@incunabulum.net>, Andriy Gapon <avg@icyb.net.ua>, freebsd-current@freebsd.org
Subject:   Re: weeding out c++ keywords from sys/sys
Message-ID:  <49985807.805@protected-networks.net>
In-Reply-To: <20090215182420.774b90c3@ernst.jennejohn.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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? ;-)

	Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkmYWAcACgkQQv9rrgRC1JKnnQCeNJSMhFvG0666r4e+HLXIle1q
0GgAoMqep9fprWjFUB4z0bV0CLuJEV5+
=vRe+
-----END PGP SIGNATURE-----



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