git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* header file at a top
@ 2011-12-17 21:57 Thiago Farina
  2011-12-18  5:43 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Thiago Farina @ 2011-12-17 21:57 UTC (permalink / raw)
  To: Git Mailing List

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-18  5:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-17 21:57 header file at a top Thiago Farina
2011-12-18  5:43 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).