mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: rmoser <mlmoser@comcast.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Coding regulations
Date: Sat, 26 Apr 2003 11:21:38 +0200	[thread overview]
Message-ID: <20030426092138.GE23757@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <200304252214120970.019AF211@smtp.comcast.net>

On Fri, 25 April 2003 22:14:12 -0400, rmoser wrote:
> 
> Yeah just a quick question.  Not that I am actually able to code kernel
> level drivers (I wish), but when I do code that would be part of one, I would
> prefer not to make it a hassle for others to impliment.
> 
> To the point, I tend to do C++ classes, then make a C interface.  Makes
> it easier for me to program.  Now, you may not want to mess with the C++
> and convert it over, plus you may not want C++ code in the kernel.  I am
> about to start on the compression code for the fast algorithm that may be
> used for kernel swap compression and compressed swap-on-ram, assuming
> these swap modules are implimented.  I don't want to cause any... oddities.
> 
> The C interfaces are just C functions that take a numerical handle which
> identifies a class in a self-sorting linked list, as well as all the other data that
> goes to each member function of the classes.  I can still do it in C alone but
> it's a little more work.  Just don't wanna mess anyone/anything up.

The kernel uses c only (plus a little asm, if there is just no other
possibility). If it is trivial for me to convert your c++ to c, I will
do that. But since I don't really speak c++, c would be nicer.

Jörn

-- 
Data dominates. If you've chosen the right data structures and organized
things well, the algorithms will almost always be self-evident. Data
structures, not algorithms, are central to programming.
-- Rob Pike

      reply	other threads:[~2003-04-26  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-26  2:14 rmoser
2003-04-26  9:21 ` Jörn Engel [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=20030426092138.GE23757@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlmoser@comcast.net \
    /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®