home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!swrinde!gatech!destroyer!cs.ubc.ca!uw-beaver!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!ll.mit.edu!lebrun
- From: lebrun@ll.mit.edu (Steven F. LeBrun)
- Subject: Re: assert
- In-Reply-To: steve@taumet.com's message of Mon, 21 Dec 1992 16:30:06 GMT
- Message-ID: <9212211543.PN29748@LL.MIT.EDU>
- Sender: news@ll.mit.edu
- Organization: MIT Lincoln Laboratory, Lexington, MA
- References: <HBF.92Dec19163113@gandalf.uio.no> <1992Dec21.163006.8068@taumet.com>
- Date: Mon, 21 Dec 92 15:43:40 -0500
- Lines: 37
-
-
- > The first alternative (#include <stdio.h>) is forbidden by the C
- > Standard (standard headers may not #include other standard headers).
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- I took a look at the ANSI C document (X3.159-1989) and could not find a
- section that states that standard header files cannot include other
- standard header files. As a matter of fact, section 4.11.2 "Standard
- Headers" states that header files included in any order and may be
- included more than once with the same effect as if they were included
- only once. [There is an exception pointed out in this section about
- the <assert.h> header file.]
-
- Since this section of the ANSI C document states that header files can
- be included more than once and in any order (with the possible exception
- of <assert.h>) and does not explicitly state that standard headers may
- not include other standard headers, that standard headers may include
- other standard header files. I would think that standard header files
- including other standard header files is almost a necessity in order that
- standard header files may be include in any order and still keep the
- standard header files as simple as practical.
-
- If there is a section in the ANSI C standard that explicitly, or
- implicitly, states that one standard header file can not include
- another standard header file, I would like to know about it. Please,
- email the section number.
- --
-
- +--------------------------------------------------------------------------+
- | Steven F. LeBrun | MIT Lincoln Laboratory, Group 91 |
- | | 244 Wood Street, Room LI-136 |
- | lebrun@ll.mit.edu (Internet) | Lexington, MA 02173-9108 |
- | lebruns@merlin (internal) | Phone:(617)-981-5742, FAX:(617)-981-0991 |
- +--------------------------------------------------------------------------+
- |"Hard as lightning, soft as candlelight; |
- | Dare you trust the Music of the Night?" - The Phantom |
- +--------------------------------------------------------------------------+
-