" It's especially important to put a declaration or definition in a
header file when it will be shared between several other files"
I guess those definitions or declarations are used only in sched.c ,
so there is no reason to put them in header file.
Daniel.
On Wed, Aug 6, 2008 at 5:05 PM, Zellu
Hi all
I'm learning scheduling algorithm and reading sched.c (
http://lxr.linux.no/linux+v2.6.11/kernel/sched.c) , and come up with a
question.
As C FAQ 10.6 points out, macro definitions and struct declarations should
be put in header files(http://c-faq.com/cpp/hfiles.html)
But sched.c violates