Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jun 2011 13:15:58 +0100
From:      Ben Laurie <ben@links.org>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        Ben Laurie <benl@freebsd.org>, 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:  <4DFDE87E.2050309@links.org>
In-Reply-To: <20110618174531.GW48734@deviant.kiev.zoral.com.ua>
References:  <201106181356.p5IDuXhW044171@svn.freebsd.org> <20110618174531.GW48734@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 18/06/2011 18:45, Kostik Belousov wrote:
>> Modified: head/sys/sys/param.h
>> ==============================================================================
>> --- 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)))
>>  
>> +/*
>> + * 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.

Hmm. Clang's own headers use __typeof__, it seems. gcc's docs also use
__typeof__.

-- 
http://www.apache-ssl.org/ben.html           http://www.links.org/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DFDE87E.2050309>