This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fixing namespace issues for variables
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 23 Oct 2015 15:58:23 -0700 (PDT)
- Subject: Re: Fixing namespace issues for variables
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1510222324130 dot 23141 at digraph dot polyomino dot org dot uk> <20151023002929 dot 946ED2C3B50 at topped-with-meat dot com> <alpine dot DEB dot 2 dot 10 dot 1510230210470 dot 23141 at digraph dot polyomino dot org dot uk> <20151023181705 dot 3E1C02C3B7A at topped-with-meat dot com> <alpine dot DEB dot 2 dot 10 dot 1510232022460 dot 5421 at digraph dot polyomino dot org dot uk> <20151023205715 dot 09EA22C3B7D at topped-with-meat dot com> <alpine dot DEB dot 2 dot 10 dot 1510232120360 dot 5421 at digraph dot polyomino dot org dot uk>
> Well, portable code can't use &stdin, because it's simply not valid with a
> traditional definition of stdin as (&_iob[0]). The standard says the std*
> macros are expressions of type "pointer to FILE", with no requirements on
> being constant, able to have their address taken, etc.
OK. But &foo is an issue for the other ones you're proposing changing.