Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Jerry <jerry@wicomtechnologies.com>
Cc: linux-mips@linux-mips.org
Subject: Re: structure initialization
Date: Fri, 22 Jul 2005 15:49:46 +0200	[thread overview]
Message-ID: <20050722134946.GE1692@hattusa.textio> (raw)
In-Reply-To: <1663025994.20050722163929@wicomtechnologies.com>

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

      reply	other threads:[~2005-07-22 13:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22 13:39 structure initialization Jerry
2005-07-22 13:49 ` Thiemo Seufer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050722134946.GE1692@hattusa.textio \
    --to=ths@networkno.de \
    --cc=jerry@wicomtechnologies.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox