C struct construct question

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Apr 18 16:39:28 UTC 2006


On Tue, 18 Apr 2006, John Vetterli wrote:

> This syntax specifies which field in struct ast_channel_tech receives which 
> value, as opposed to having to list the the values in the same order as they 
> were declared in. Have a look at:
>
>  http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Designated-Inits.html
>
> That web page is for gcc version 4.1.0, but that feature seems to have been 
> in gcc since the first 3.x release.

Yes. And that's the problem. I don't think that this is very portable. 
gcc 2.x.x did *not* support this and neither do my books mention it.

thanks,
Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list