From owner-freebsd-current@FreeBSD.ORG Sun Feb 15 18:12:04 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4AA4106566B for ; Sun, 15 Feb 2009 18:12:04 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 613988FC0C for ; Sun, 15 Feb 2009 18:12:02 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 15 Feb 2009 18:12:00 -0000 Received: from p54A3DABF.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.218.191] by mail.gmx.net (mp056) with SMTP; 15 Feb 2009 19:12:00 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX1+0tUdzj7O0+Qr2usE6MH/JI65ZALOydIqs/CcWJu y51iKnqwl1mZ5y Message-ID: <49985AEE.1010709@gmx.de> Date: Sun, 15 Feb 2009 19:11:58 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Michael Butler 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> In-Reply-To: <49985807.805@protected-networks.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.61 Cc: Andrew Reilly , Bruce Simpson , freebsd-current@freebsd.org, Andriy Gapon Subject: Re: weeding out c++ keywords from sys/sys X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 18:12:05 -0000 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).