lkml.org 
[lkml]   [2008]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: including .c files ?
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


\
 
 \ /
  Last update: 2008-08-08 17:09    [W:0.071 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site