On Fri, Mar 20, 2015 at 02:53:39PM +0900, Masatake YAMATO wrote: > --- a/defs.h > +++ b/defs.h > @@ -398,6 +398,13 @@ void error_msg_and_die(const char *fmt, ...) > __attribute__ ((noreturn, format(pr > void perror_msg_and_die(const char *fmt, ...) __attribute__ ((noreturn, > format(printf, 1, 2))); > void die_out_of_memory(void) __attribute__ ((noreturn)); > > +/* > + * Memory allocator + die_out_of_memory > + */ > +void *xmalloc(size_t size); > +void *xcalloc(size_t nmmeb, size_t size);
Shouldn't __attribute_alloc_size__ and __attribute_malloc__ be added to these functions? > +void *xrealloc(void *ptr, size_t size); Shouldn't __attribute_alloc_size__ be added to this function? -- ldv
pgptb3UBK4tDx.pgp
Description: PGP signature
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel