This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: organization of C Extensions in manual
- From: Joseph Myers <joseph at codesourcery dot com>
- To: David Wohlferd <dw at LimeGreenSocks dot com>
- Cc: Sandra Loosemore <sandra at codesourcery dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "joel dot sherrill at oarcorp dot com >> Joel Sherrill" <joel dot sherrill at oarcorp dot com>, "gary at intrepid dot com >> Gary Funck" <gary at intrepid dot com>, Jeff Law <law at redhat dot com>, Gerald Pfeifer <gerald at pfeifer dot com>
- Date: Mon, 26 Jan 2015 17:33:34 +0000
- Subject: Re: organization of C Extensions in manual
- Authentication-results: sourceware.org; auth=none
- References: <54BAF3EE dot 70308 at LimeGreenSocks dot com> <54BBE38F dot 6030007 at codesourcery dot com> <54C57897 dot 6050405 at LimeGreenSocks dot com>
On Sun, 25 Jan 2015, David Wohlferd wrote:
> >> Arrays and Vectors
> >> Designated Inits: Labeling elements of initializers.
> >
> > I think this one might better be placed in a section on initializers.
>
> Since the only place 'Designated Inits' can be used is on arrays, placing this
> in the 'Arrays and Vectors' section seems appropriate.
Designated initializers apply to both array elements and structure and
union members.
(This is another case that logically would describe (a) that the C99
feature is accepted for older standards; (b) a limited subset is accepted
for C++; (c) there's also this legacy pre-standard syntax you may see in
existing code but shouldn't used in new code.)
--
Joseph S. Myers
joseph@codesourcery.com