www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/18/08:44:01

Date: Tue, 18 May 1999 08:43:52 -0400
Message-Id: <199905181243.IAA10937@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.LNX.3.93.990518125915.3271C-100000@acp3bf> (message from
Hans-Bernhard Broeker on Tue, 18 May 1999 13:07:24 +0200 (MET DST))
Subject: Re: wctype.h and ctype.h
References: <Pine DOT LNX DOT 3 DOT 93 DOT 990518125915 DOT 3271C-100000 AT acp3bf>
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> If memory serves, DJ originally put much work in achieving this goal,
> so I'd be rather surprised if we would have drifted that far away.

The goal was twofold:

1. Each header should work with and without including other headers
   (i.e. no syntax errors)

2. Conform to ANSI/POSIX rules

Thus, stdio.h has code to pull in the typedefs normally found in
stdarg.h even if you don't include stdarg.h yourself (vfprintf needs
them) and sys/stat.h defines the types it would have gotten from
sys/types.h.

In general, headers should do the absolute minimum required to make
them work in *any* permutation of inclusion, but otherwise follow
published standards.

- Raw text -


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