The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Chris Friesen" <cfriesen@nortel.com>
To: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: including .c files ?
Date: Fri, 08 Aug 2008 09:05:55 -0600	[thread overview]
Message-ID: <489C60D3.2040201@nortel.com> (raw)
In-Reply-To: <m3abfnk296.fsf@maximus.localdomain>

Krzysztof Halasa wrote:
> "Frans Meulenbroeks" <fransmeulenbroeks@gmail.com> writes:
> 
> 
>>Generally I would expect that if the .c file contains some standalone
>>functionality then it should probably be a .c file on its own with a
>>well defined interface.
> 
> 
> Doesn't work when you need conditional compilation.

Sure it does...look at all the kernel Makefiles that compile code based 
on whether a config option is set.

In the case of the scheduler I suspect it's done to break a single 
logical file into several pieces for better readability.

Chris

  reply	other threads:[~2008-08-08 15:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 11:25 including .c files ? Frans Meulenbroeks
2008-08-08 14:30 ` Krzysztof Halasa
2008-08-08 15:05   ` Chris Friesen [this message]
2008-08-08 15:46     ` Krzysztof Halasa
2008-08-08 15:36 ` Rene Herman
2008-08-08 19:13   ` H. Peter Anvin

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=489C60D3.2040201@nortel.com \
    --to=cfriesen@nortel.com \
    --cc=fransmeulenbroeks@gmail.com \
    --cc=khc@pm.waw.pl \
    --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