Re: header files & #includes

From: Jeff Schwab (jeffplus_at_comcast.net)
Date: 01/01/04


Date: Thu, 01 Jan 2004 16:21:09 -0500

header_question wrote:
> Is it best to place all #include files in one header file seperate
> from all the other files in a project?
>
> What is the logic that determines the order of the #include files,

In most environments, the headers can be included in any order, and
there is no advantage to including them all in one "master header."

In environments that support pre-compiled headers, there is often a
significant advantage to including headers in the same order within each
translation unit. In this case, the "master header" approach can be
useful. Unless you know that you are using such an environment, don't
bother complicating your file structure.

> does it depend on the order of function calls in main?

No.



Relevant Pages

  • Altered theorem-like environment
    ... Header separated from theorem body by a specifiable length. ... Consistency across page breaks (no widow titles). ... A self crafted version using \needspace package has worked mostly well on pagebreaks, but causes problems when using math environments at the start, because too much additional space is added to the already present spacing from the header. ... I've also made experiments using ntheorem environments, but the separating the head or \beginto achieve indentation has always caused theorem headers to be cut off at page breaks. ...
    (comp.text.tex)
  • Re: [PATCH] Include header required for INT_MAX
    ... This seems like a good time to ask why the kernel doesn't use ... environments, which might not support the formatted I/O functions. ... using this header instead of the header avoids ...
    (Linux-Kernel)
  • Re: Anonymous Site with NTLM Optional
    ... If this works in Dev, but not in Prod, then there is something different between the environments. ... Are are you absolutely sure that the client isn't sending credentials (and that the Prod server is sending the requisite WWW-Authenticate header)? ... NTLM" headers from then on? ...
    (microsoft.public.inetserver.iis)
  • Re: Compiler version not supported by Windows DDK
    ... subsidiary header. ... Please do not send e-mail directly to this alias. ... > Could you please name some UM "components" or header files that use ... > it is intended to be used in both UM and KM environments? ...
    (microsoft.public.development.device.drivers)
  • Re: I have a centering Problem on excel documents.
    ... >>When printed it appears as if some one printed a Master header on just ... > exactly one header and footer - anything else requires VBA. ... I dad is in early stage althiemers and its difficult to convince him ... either to take his medication and eye drops; ...
    (microsoft.public.mac.office.excel)