Re: [patch-2.4.0-test2]Re: Linux-2.4.0-test2

From: Florian Weimer (fw@deneb.enyo.de)
Date: Sun Jun 25 2000 - 05:14:51 EST


alan@lxorguk.ukuu.org.uk (Alan Cox) writes:

> I havent submitted that to Linus. As someone pointed out the guarantee is
> not true for a struct either..

Quote from ISO/IEC 9899:1999, section 6.2.5:

| -- A structure type describes a sequentially allocated
| nonempty set of member objects (and, in certain
| circumstances, an incomplete array), each of which has
| an optionally specified name and possibly distinct
| type.

And in section 6.7.2.1:

| [#5] As discussed in 6.2.5, a structure is a type consisting
| of a sequence of members, whose storage is allocated in an
| ordered sequence, and a union is a type consisting of a
| sequence of members whose storage overlap.

C is horrible, but it's not THAT horrible.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:06 EST