From owner-freebsd-stable Fri Jul 7 6:31:23 2000 Delivered-To: freebsd-stable@freebsd.org Received: from citadel.cequrux.com (citadel.cequrux.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id 4735C37BE70 for ; Fri, 7 Jul 2000 06:31:14 -0700 (PDT) (envelope-from gram@cequrux.com) Received: (from nobody@localhost) by citadel.cequrux.com (8.8.8/8.6.9) id PAA28317; Fri, 7 Jul 2000 15:30:38 +0200 (SAST) Received: by citadel.cequrux.com via recvmail id 28235; Fri Jul 7 15:29:57 2000 Message-ID: <8fca3bbaa2f8337473c9f0334a4a5dff@cequrux.com> Date: Fri, 07 Jul 2000 15:31:46 +0200 From: Graham Wheeler Organization: Cequrux Technologies X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Thomas David Rivers Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Any chance of changing struct member names in nameser.h? References: <200007071320.JAA86645@lakes.dignus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thomas David Rivers wrote: > > extern "C" doesn't mean > > "The following source is C code" > > what it means is that any external linkage generated will use C > linkage conventions. For most C++ implementations, this means > "don't mangle function names". > > The source within an `extern "C"' block has to be parsable by > the C++ parser... it's still C++. > > For example, you can't say: > > extern "PASCAL" { > ... pascal source ... > } > > and expect that to work... > > That's my understanding of how this works, anyway... And your understanding is quite correct. I tried the extern "C" approach when I first hit this problem, just to see if I would get lucky and that it would allow names that are C++ reserved words, but of course it made no difference. -- Dr Graham Wheeler E-mail: gram@cequrux.com Director, Research and Development WWW: http://www.cequrux.com CEQURUX Technologies Phone: +27(21)423-6065 Firewalls/VPN Specialists Fax: +27(21)424-3656 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message