]> granicus.if.org Git - strace/commit
Define macros for renaming xmalloc and xcalloc
authorMasatake YAMATO <yamato@redhat.com>
Mon, 18 Dec 2017 04:24:54 +0000 (13:24 +0900)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 26 Dec 2017 21:36:49 +0000 (21:36 +0000)
commitb4f98f3d1f902a15cb87bbb02a12112d52b15711
tree458dcbcaf2dd52a3020c7a283bd750f25bfe9360
parent9aa434bc6eed5091bd3fbd4533c9076b89217bf5
Define macros for renaming xmalloc and xcalloc

I'm planning to link strace with libiberty for mangling C++
symbol names in stack trace enabled with -k option.

Both names, xmalloc and xcalloc, are already defined and used
in libiberty, and they conflict with functions in strace.
Rename xmalloc and xcalloc functions defined in strace
to strace_xmalloc and strace_xcalloc, respectively,
to avoid this conflict.

* xmalloc.h (xcalloc, xmalloc): New macros.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
xmalloc.h