[parted-devel] Nested structs and unions.

David Cantrell dcantrell at redhat.com
Fri Feb 16 16:43:10 CET 2007


On Fri, 2007-02-16 at 08:24 -0200, Otavio Salvador wrote:
> "Debarshi Ray" <debarshi.ray at gmail.com> writes:
> 
> > struct foo {
> >        int ...
> >        struct bar {
> >                int ...
> >        }
> > };
> >
> > This has led to two completely different ways of defining such complex
> > data-types, in turn affecting the style and readability of the code.
> >
> > Which one is preferred?
> 
> I prefer this one.

Same here.  The indentation helps readability.

-- 
David Cantrell <dcantrell at redhat.com>
Red Hat / Westford, MA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20070216/c62fa167/attachment.pgp


More information about the parted-devel mailing list