Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #15959

Re: struct alignment

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feed.news.qwest.net!mpls-nntp-02.inet.qwest.net!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!panix!not-for-mail
From jgk@panix.com (Joe keane)
Newsgroups comp.lang.c
Subject Re: struct alignment
Date Thu, 19 Jan 2012 21:42:11 +0000 (UTC)
Organization Public Access Networks Corp.
Lines 26
Message-ID <jfa2nj$58j$1@reader1.panix.com> (permalink)
References <jekkil$u7v$1@speranza.aioe.org> <ln62gh2pes.fsf@nuthaus.mib.org> <slrnjhdurr.1ls.grahn+nntp@frailea.sa.invalid> <20120118091128.539@kylheku.com>
NNTP-Posting-Host panix5.panix.com
X-Trace reader1.panix.com 1327009331 5395 166.84.1.5 (19 Jan 2012 21:42:11 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Thu, 19 Jan 2012 21:42:11 +0000 (UTC)
X-Newsreader trn 4.0-test76 (Apr 2, 2001)
Xref x330-a1.tempe.blueboxinc.net comp.lang.c:15959

Show key headers only | View raw


In article <20120118091128.539@kylheku.com>,
Kaz Kylheku  <kaz@kylheku.com> wrote:
>Reordering struct members would break all kinds of code, not all of which is
>ISO C mandated.

It would be a cool option though...

	struct apple
	{
	    char x;
	    double y;
	};

	struct vector
	{
	    __rearrangeok
	    struct apple e[5];
	};

	->

	struct vectorn
	{
	    char exz[5];
	    double eyz[5];
	};

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

struct alignment "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2012-01-11 13:31 -0500
  Re: struct alignment Kleuske <kleuske@nowhere.net> - 2012-01-11 19:23 +0000
  Re: struct alignment "Scott Fluhrer" <sfluhrer@ix.netcom.com> - 2012-01-11 16:58 -0500
  Re: struct alignment Ralf Damaschke <rwspam@gmx.de> - 2012-01-11 22:08 +0000
  Re: struct alignment Keith Thompson <kst-u@mib.org> - 2012-01-11 14:42 -0800
    Re: struct alignment Dr Nick <3-nospam@temporary-address.org.uk> - 2012-01-12 06:56 +0000
      Re: struct alignment Ian Collins <ian-news@hotmail.com> - 2012-01-12 20:42 +1300
        Re: struct alignment Keith Thompson <kst-u@mib.org> - 2012-01-12 02:20 -0800
          Re: struct alignment Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-01-18 17:03 +0000
            Re: struct alignment Kaz Kylheku <kaz@kylheku.com> - 2012-01-18 17:21 +0000
              Re: struct alignment jgk@panix.com (Joe keane) - 2012-01-19 21:42 +0000
                Re: struct alignment blp@cs.stanford.edu (Ben Pfaff) - 2012-01-19 13:57 -0800
            Re: struct alignment Stephen Sprunk <stephen@sprunk.org> - 2012-01-18 11:57 -0600
              Re: struct alignment Keith Thompson <kst-u@mib.org> - 2012-01-18 14:28 -0800
            Re: struct alignment Robert Wessel <robertwessel2@yahoo.com> - 2012-01-18 13:10 -0600
              Re: struct alignment Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-01-19 11:34 +0000
                Re: struct alignment Robert Wessel <robertwessel2@yahoo.com> - 2012-01-19 14:50 -0600
                Re: struct alignment Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-01-21 11:49 +0000

csiph-web