* structure initialization
@ 2005-07-22 13:39 Jerry
2005-07-22 13:49 ` Thiemo Seufer
0 siblings, 1 reply; 2+ messages in thread
From: Jerry @ 2005-07-22 13:39 UTC (permalink / raw)
To: linux-mips
A kind of lame offtopic question :)
What reason in 2.6 to do structure init in this way:
struct a = {
.name = value
...
instead of 2.4-like:
struct a = {
name: value
...
Is this a bad form to use ".name" in 2.4 or "name:" in 2.6?
()_()
-( ^,^ )- -[21398845]- -<The Bat! 3.0.1.33>- -<22.07.2005 16:27>-
(") (")
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: structure initialization
2005-07-22 13:39 structure initialization Jerry
@ 2005-07-22 13:49 ` Thiemo Seufer
0 siblings, 0 replies; 2+ messages in thread
From: Thiemo Seufer @ 2005-07-22 13:49 UTC (permalink / raw)
To: Jerry; +Cc: linux-mips
Jerry wrote:
>
> A kind of lame offtopic question :)
> What reason in 2.6 to do structure init in this way:
> struct a = {
> .name = value
> ...
>
> instead of 2.4-like:
> struct a = {
> name: value
> ...
>
> Is this a bad form to use ".name" in 2.4 or "name:" in 2.6?
name: is the obsolete GNU gcc extension, .name = is C99. The C99 style
is strongly preferred now.
Thiemo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-22 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22 13:39 structure initialization Jerry
2005-07-22 13:49 ` Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox