bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More attributes on xmalloc and friends?


From: Colin Watson
Subject: More attributes on xmalloc and friends?
Date: Wed, 17 Oct 2007 14:44:20 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

If I'm not mistaken, the xalloc family of functions should have the same
set of function attributes as the corresponding functions in glibc.
glibc gives malloc, calloc, and realloc the 'malloc' and
'warn_unused_result' attributes; similarly, it gives strdup and strndup
the 'malloc' and 'nonnull (1)' attributes. 'malloc' requires gcc 2.96,
'nonnull' requires gcc 3.3, and 'warn_unused_result' requires gcc 3.4.
Could Gnulib do the same for its x* wrappers?

Thanks,

-- 
Colin Watson                                       address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]