Messages in this thread | | | Date | Fri, 08 Aug 2008 09:05:55 -0600 | From | "Chris Friesen" <> | Subject | Re: 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
| |