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

From: Jes Sorensen (Jes.Sorensen@cern.ch)
Date: Fri Apr 28 2000 - 04:49:18 EST


>>>>> "Paul" == Paul Barton-Davis <pbd@op.net> writes:

>>> >From: Jes Sorensen <Jes.Sorensen@cern.ch>
>>> I find this approach pretty worrying. Its *often* necessary to
>>> include such files in user-space programs that use ioctl to
>>> control various hardware resourcs (e.g. linux/rtc.h).
>> hey, I am sure Jes was joking, just forgot to put a smiley there
>> :)

Paul> I hope so. Sorry if I failed to pick up on the obvious clues :)

I wasn't joking, but as I stated in my previous reply I originally
read the posting as being about compiling kernel C++ modules.

Paul> Thats not the issue here. The issue is using the keyword "new"
Paul> for a declaration's argument. It would be nice if this was
Paul> avoided, just like "delete", "catch", "throw" and the rest of
Paul> the C++ keyword superset.

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.

Things provided to userland should of course be C, C++, ObjC yada yada
compatible.

Jes

-
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:14 EST