public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
To: jfc@mit.edu, robertl@dgii.com
Cc: egcs@cygnus.com
Subject: Re: including <stdlib.h>
Date: Wed, 11 Feb 1998 11:23:00 -0000	[thread overview]
Message-ID: <199802111618.LAA15720@caip.rutgers.edu> (raw)

 > From: John Carr <jfc@mit.edu>
 > 
 > The *config.h files I referred to are the autoconf-generated config.h,
 > hconfig.h, tconfig.h, and auto-config.h in the gcc build directory.
 > 
 > For example, in auto-config.h replace
 > 	#define HAVE_STDLIB_H 1
 > with
 > 	#include <stdlib.h>

John,

	This approach removes some of the control one might want since,
if you include auto-config.h, you are forced to include the header file
rather than being able to check a macro.  It also removes the ability of
a config/ directory file from being able to override what autoconf tells
us. 

	Another approach would be to supply a "system.h" file which
includes various headers (eg stdlib.h), provides possibly missing system
prototypes (eg bcopy) and possibly missing system macros (eg R_OK),
etc., and each gcc source file could then include this file if desired
to get default stuff.  (Or the source file could instead enumerate these
things manually if the default system.h is not appropriate.)

	I've submitted a draft version of this to Jeff, mostly copied
from the same approach used in the fileutils package.

	Hmmm, I just checked the list archive and for some reason the
file I submitted seems to have stripped all the include statements so
they appear without the file its trying to include inside <>.  Wierd... 

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Project Manager / Custom Development
ghazi@caip.rutgers.edu		ICon CMT Corp.

             reply	other threads:[~1998-02-11 11:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-11 11:23 Kaveh R. Ghazi [this message]
1998-02-11 11:23 ` Robert Lipe
1998-02-11 17:22 ` Ross Smith
1998-02-12  4:26   ` Mark Mitchell
1998-02-12 20:07     ` HTML archives (was: Re: including <stdlib.h>) Ross Smith
1998-02-13  2:04       ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1998-02-13 10:31 including <stdlib.h> Kaveh R. Ghazi
1998-02-12 19:36 Kaveh R. Ghazi
1998-02-13  2:04 ` Jeffrey A Law
1998-02-11 11:23 Kaveh R. Ghazi
1998-02-12  4:26 ` Jeffrey A Law
1998-02-11  4:23 John Carr
1998-02-11  6:50 ` Robert Lipe
1998-02-11  6:50   ` John Carr
1998-02-11 11:23 ` Jeffrey A Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199802111618.LAA15720@caip.rutgers.edu \
    --to=ghazi@caip.rutgers.edu \
    --cc=egcs@cygnus.com \
    --cc=jfc@mit.edu \
    --cc=robertl@dgii.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).