header file at a top
- From
Thiago Farina <tfransosi@gmail.com>
- Date
- Dec 17, 2011, 21:57 UTC
- Message-ID
- <CACnwZYdSPPhLyu6Oi3k2aNzYqvmD=xDYWvCEd2ofyJSntqKdJg@mail.gmail.com>
Hi folks,
I don't understand why in git the .h file is not included as the first substantive line of the .c file.
i.e:
foo.c -------------------------------------------------------------------- #include "foo.h"
/* in alphabetical order */ #include "bar.h" #include "tiz.h"
Any particular reason we include the corresponding header file at some random position in the source file?