Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jul 2000 15:31:46 +0200
From:      Graham Wheeler <gram@cequrux.com>
To:        Thomas David Rivers <rivers@dignus.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Any chance of changing struct member names in nameser.h?
Message-ID:  <8fca3bbaa2f8337473c9f0334a4a5dff@cequrux.com>
References:  <200007071320.JAA86645@lakes.dignus.com>

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




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