Re: [PATCH] C++ breaks on linux/ioport.h

From: Sean Hunter (seanh@sportingbet.com)
Date: Sun Apr 30 2000 - 03:01:52 EST


On Fri, Apr 28, 2000 at 12:54:07PM +0200, Dominik Kubla wrote:
> On Fri, Apr 28, 2000 at 11:49:18AM +0200, Jes Sorensen wrote:
>
> > The kernel is written in GNU C (ie. C with gcc extensions) and using
> > keywords such as 'new' is _perfectly_ valid. The fact that the C++
> > people introduced extra keywords is really irrelevant for the kernel
> > development.
>
> And i think that stumbling over C++ reserverd words in a block explictily
> declared 'extern "C" {...}' as i suggested is a bug in either the standard
> or the implementation of said standard in the compiler. What does the
> ISO-C++ standard say about this?

The ISO standard says that extern "C" specifies that functions
declared in an extern "C" block have C-style linkage. Stroustrup says
(Third edition, section 9.2.4) 'Note that the C in extern "C" names a
linkage convention and not a language'

The compiler is doing the right thing.

Sean

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:17 EST