[PATCH 2/3] sys/cdefs.h: export __attribute_alloc_size__
Mike Frysinger
vapier@gentoo.org
Mon Dec 31 20:48:00 GMT 2012
On Monday 31 December 2012 05:06:59 Andreas Schwab wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > This requires a slight tweaking of the name (add trailing
> > underscores).
>
> Why?
sticking to the existing naming convention. from sys/cdefs.h:
# define __attribute__(xyz) /* Ignore */
# define __attribute_malloc__ __attribute__ ((__malloc__))
# define __attribute_pure__ __attribute__ ((__pure__))
# define __attribute_const__ __attribute__ ((__const__))
# define __attribute_used__ __attribute__ ((__used__))
# define __attribute_noinline__ __attribute__ ((__noinline__))
# define __attribute_used__ __attribute__ ((__unused__))
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
# define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
# define __attribute_artificial__ __attribute__ ((__artificial__))
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121231/eb87f492/attachment.sig>
More information about the Libc-alpha
mailing list