Question on coding style in networking code

From: chuckw@ieee.org
Date: Sun Aug 19 2001 - 11:44:42 EST


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
                
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:33 EST