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...

Kostik Belousov kostikbel at gmail.com
Sat Jun 18 17:45:39 UTC 2011


> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20110618/530f76b4/attachment.pgp


More information about the svn-src-all mailing list