From: Eric Gillespie <epg@pretzelnet.org>
Subject: Re: GTK patches part 2
Date: Tue, 10 Dec 2002 16:23:59 -0500 [thread overview]
Message-ID: <16731.1039555439@remus.pretzelnet.org> (raw)
In-Reply-To: 200212102040.gBAKe116016464@stubby.bodenonline.com
"Jan D." <jan.h.d@swipnet.se> writes:
> > You can't rely on that. If *you* make reference to symbols or
> > macros, *you* need to include the appropriate header file,
> > regardless of whether or not some other header you include also
> > needs that header file. Sometimes people just dump all their
>
> There is no such requrement in the C standard, even if it makes
> sense for some people.
Who said anything about the standard? Standards have nothing to
do with this. The fact is that if you don't include relevant
headers yourself (having them in local header files such as
config.h as you mention below counts as "yourself", of course),
you cannot count on the declarations being available. Unless
you only want the program to work on your system, of course (no,
i'm not accusing you of that, i know it was a simple mistake :).
> For example, stdlib.h is included by config.h, so it is clearly
Whoops. When i noticed the stderr problem also noticed malloc
being called with no stdlib.h. As i said, my preferred style
would be to go ahead and explicitly include stdlib.h in gtkutil.c
itself. But i don't get to make such decisions for emacs, nor do
i want to; it works and that's all that matters to me.
> redundant to do so elsewhere. I can put in stdio.h just for the
> sake of portability.
Thanks.
Just out of curiosity, which header included stdio.h for you on
your system?
--
Eric Gillespie <*> epg@pretzelnet.org
Build a fire for a man, and he'll be warm for a day. Set a man on
fire, and he'll be warm for the rest of his life. -Terry Pratchett
next prev parent reply other threads:[~2002-12-10 21:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-08 22:33 GTK patches part 2 Jan D.
2002-12-09 21:25 ` Eric Gillespie
2002-12-10 18:28 ` Jan D.
2002-12-10 19:06 ` Eric Gillespie
2002-12-10 19:33 ` Jan D.
2002-12-10 20:08 ` Eric Gillespie
2002-12-10 20:44 ` Jan D.
2002-12-10 21:23 ` Eric Gillespie [this message]
2002-12-11 17:45 ` Richard Stallman
2002-12-11 20:04 ` Eric Gillespie
2002-12-12 6:05 ` Eli Zaretskii
2002-12-11 17:48 ` Jan D.
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16731.1039555439@remus.pretzelnet.org \
--to=epg@pretzelnet.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).