public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: chuckw@ieee.org
To: linux-kernel@vger.kernel.org
Subject: Question on coding style in networking code
Date: Sun, 19 Aug 2001 12:44:42 -0400	[thread overview]
Message-ID: <20010819124442.G2388@ieee.org> (raw)

Hello All,
	First off, this is probably a straight C question, but here goes...

	I was looking at the kernel code, and in protocol.c the protocol structures are
instansiated and filled.  Now, I have seen/used the following syntax:
	struct x y = { x, y, z };
	
I have not seen the following:
	struct x y = {
		member1: x,
		member2: y,
		member3: z
	};

What is the deal with this?  Does the second way have any advantage over the previous?

Thanks in advance,
Chuck
		

             reply	other threads:[~2001-08-20  4:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-19 16:44 chuckw [this message]
2001-08-20  4:56 ` Question on coding style in networking code Alexander Viro
2001-08-19 17:11   ` chuckw
2001-08-20 15:51     ` george anzinger

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=20010819124442.G2388@ieee.org \
    --to=chuckw@ieee.org \
    --cc=linux-kernel@vger.kernel.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