delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/05/10:23:15

Date: Mon, 05 Jun 2000 09:21:45 -0500
From: Eric Rudd <rudd AT cyberoptics DOT com>
Subject: Re: ANSI C and stdio.h
To: djgpp-workers AT delorie DOT com
Message-id: <393BB779.DDA55FEC@cyberoptics.com>
Organization: CyberOptics
MIME-version: 1.0
X-Mailer: Mozilla 4.72 [en] (Win95; U)
X-Accept-Language: en
References: <3937DEA9 DOT 63606B27 AT softhome DOT net>
<200006021918 DOT PAA03693 AT envy DOT delorie DOT com>
Reply-To: djgpp-workers AT delorie DOT com

DJ Delorie wrote:

> DJGPP's headers are designed to minimize FAQs.  Some of them were about
> having to include header X before header Y so I added some logic to each
> header to "just work" without other headers, hopefully without polluting
> the namespace.

According to ANSI/ISO 9899-1990, 7.1.2, paragraph 4:

     [Standard] headers may be included in any order; each may be
     included more than once in a given scope, with no effect
     different from being included only once...

However, it would actually help me if DJGPP rejected code that didn't
include all the headers specified by ANSI to be necessary.  I often have
problems when I give my code to colleagues, who use different compilers
and complain that I haven't included the necessary headers.

-Eric Rudd
rudd AT cyberoptics DOT com



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019