public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: gcc@gcc.gnu.org
Subject: misleading statement in bugs.html#known
Date: Wed, 05 Dec 2001 13:16:00 -0000	[thread overview]
Message-ID: <3C0E8E95.20202@bothner.com> (raw)

The bugs.html files says 'FILE *yyin = stdin' "will not compile with GNU 
libc (GNU/Linux libc6), because stdin is not a constant. This was done 
deliberately, in order for there to be no limit on the number of open 
FILE objects."

The latter has nothing to do with it.  It is easy to make stdin be
a constant while still having no limit on the number of open FILE
objects.  For example:

	extern FILE __stdin;
         @define stdin (&__stdin)

The point is that glibc allows you to *assign* to stdin, so it is
no longer constant.  This is a questionable feature..
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/

             reply	other threads:[~2001-12-05 21:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-05 13:16 Per Bothner [this message]
2001-12-05 13:52 ` Geoff Keating
2001-12-06 12:33   ` Per Bothner
2001-12-06 15:48     ` Richard Henderson
2001-12-05 14:38 ` Andreas Schwab
2001-12-06  4:31   ` Gerald Pfeifer
2001-12-06  4:46     ` Andreas Schwab
2001-12-06  7:18       ` Gerald Pfeifer
2001-12-06  7:35         ` Andreas Schwab
2001-12-06 10:08           ` Gerald Pfeifer

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=3C0E8E95.20202@bothner.com \
    --to=per@bothner.com \
    --cc=gcc@gcc.gnu.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.
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).