gdb: remove use of PTR
PTR will disappear from ansidecl.h and libiberty on the next import from gcc. Remove current uses in gdb.
This commit is contained in:
parent
c8a9e88bf6
commit
903f7818e7
1 changed files with 4 additions and 7 deletions
11
gdb/alloc.c
11
gdb/alloc.c
|
@ -44,10 +44,7 @@
|
|||
consistent semantics and guard against typical memory management
|
||||
problems. */
|
||||
|
||||
/* NOTE: These are declared using PTR to ensure consistency with
|
||||
"libiberty.h". xfree() is GDB local. */
|
||||
|
||||
PTR /* ARI: PTR */
|
||||
void *
|
||||
xmalloc (size_t size)
|
||||
{
|
||||
void *val;
|
||||
|
@ -64,8 +61,8 @@ xmalloc (size_t size)
|
|||
return val;
|
||||
}
|
||||
|
||||
PTR /* ARI: PTR */
|
||||
xrealloc (PTR ptr, size_t size) /* ARI: PTR */
|
||||
void *
|
||||
xrealloc (void *ptr, size_t size)
|
||||
{
|
||||
void *val;
|
||||
|
||||
|
@ -84,7 +81,7 @@ xrealloc (PTR ptr, size_t size) /* ARI: PTR */
|
|||
return val;
|
||||
}
|
||||
|
||||
PTR /* ARI: PTR */
|
||||
void *
|
||||
xcalloc (size_t number, size_t size)
|
||||
{
|
||||
void *mem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue