OSDN Git Service

* defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
authorcagney <cagney>
Fri, 23 Mar 2001 23:39:56 +0000 (23:39 +0000)
committercagney <cagney>
Fri, 23 Mar 2001 23:39:56 +0000 (23:39 +0000)
commitadaafbea74c8763f8786076ba82bb614cc972dfd
treee2e34085b1b2f247574f24f70a16a1ef46c2758b
parent6e36fea150c2268c7ec33f08bf07b15adb4a5638
* defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
xmrealloc): Move existing declarations to the one place and
re-order to be consistent.
(xmcalloc, xmfree): Declare.
(xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
declaration.

* utils.c (size_t): Delete #ifdef defining size_t.
(mmalloc, mrealloc, mcalloc, mfree): Re-order.
(mmalloc, mrealloc, mcalloc): Document as only calls in GDB
corresponding malloc, realloc, calloc.
(mfree): Call free directly.
(xmmalloc, xmrealloc): Clean up. Assume ISO-C.
(xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
function bodies to here.
(xcalloc, xfree): Call xmcalloc and xmfree respectfully.
gdb/ChangeLog
gdb/defs.h
gdb/utils.c