mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Joakim Bentholm XQ (AS/EAB)" <joakim.xq.bentholm@ericsson.com>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: PROBLEM: Compatibility problem with C++, i386 & ia64 platform
Date: Thu, 25 Nov 2004 15:54:47 +0000	[thread overview]
Message-ID: <1101398087.18214.21.camel@localhost.localdomain> (raw)
In-Reply-To: <D6A41B94D27EA643BAE9319F5348603F17D6B3@ESEALNT895.al.sw.ericsson.se>

On Maw, 2004-11-23 at 12:54, Joakim Bentholm XQ (AS/EAB) wrote:
> Maybe the system.h is not supposed to be included outside the kernel?
> Is there a less crude way of getting hold of the macros?

Nobody has really done serious C++ work with the base kernel. Getting
things like interrupt safe C++ memory and exception handling is not
exactly trivial
stuff. As such the kernel isn't really designed to be C++ friendly so
there are various uses of names like "new" in the kernel.

Developing kernel modules with C++ probably isn't ideal but I don't see
any problem in fixing the users of variables like "new" if you want to
do it and submit tested patches to akpm@osdl.org.

Alan


      parent reply	other threads:[~2004-11-27  1:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-23 12:54 Joakim Bentholm XQ (AS/EAB)
2004-11-23 19:47 ` Sam Ravnborg
2004-11-25 15:54 ` Alan Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1101398087.18214.21.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=joakim.xq.bentholm@ericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®