public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* misleading statement in bugs.html#known
@ 2001-12-05 13:16 Per Bothner
  2001-12-05 13:52 ` Geoff Keating
  2001-12-05 14:38 ` Andreas Schwab
  0 siblings, 2 replies; 10+ messages in thread
From: Per Bothner @ 2001-12-05 13:16 UTC (permalink / raw)
  To: gcc

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/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-12-06 23:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-05 13:16 misleading statement in bugs.html#known Per Bothner
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

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).