Date: Sat, 18 Jun 2011 20:45:31 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Ben Laurie <benl@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r223262 - in head: cddl/contrib/opensolaris/lib/libdtrace/common contrib/binutils/bfd contrib/binutils/gas contrib/binutils/gas/config contrib/binutils/ld contrib/binutils/opcodes contr... Message-ID: <20110618174531.GW48734@deviant.kiev.zoral.com.ua> In-Reply-To: <201106181356.p5IDuXhW044171@svn.freebsd.org> References: <201106181356.p5IDuXhW044171@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--NuRQJEdGmwFx3/6L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Modified: head/sys/sys/param.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/sys/param.h Sat Jun 18 13:54:36 2011 (r223261) > +++ head/sys/sys/param.h Sat Jun 18 13:56:33 2011 (r223262) > @@ -319,4 +319,10 @@ __END_DECLS > #define member2struct(s, m, x) \ > ((struct s *)(void *)((char *)(x) - offsetof(struct s, m))) > =20 > +/* > + * Access a variable length array that has been declared as a fixed > + * length array. > + */ > +#define __PAST_END(array, offset) (((typeof(*(array)) *)(array))[offset]) > + > #endif /* _SYS_PARAM_H_ */ The "typeof" there should be "__typeof", most likely. --NuRQJEdGmwFx3/6L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk385DsACgkQC3+MBN1Mb4jwMACfZdxx8gSpFEBmV0j/GZcLkSqg XxkAoMUit6sCX3HSDTAncU5uYW8OMSdJ =p8gE -----END PGP SIGNATURE----- --NuRQJEdGmwFx3/6L--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110618174531.GW48734>