mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
splay-tree.c (splay_tree_xmalloc_allocate, [...]): Use K&R-style definitions, not prototyped definitions.
* splay-tree.c (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate): Use K&R-style definitions, not prototyped definitions. Mark `data' arguments as unused. From-SVN: r50384
This commit is contained in:
parent
51532731d1
commit
957978a414
@ -1,3 +1,9 @@
|
||||
2002-03-06 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* splay-tree.c (splay_tree_xmalloc_allocate,
|
||||
splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
|
||||
prototyped definitions. Mark `data' arguments as unused.
|
||||
|
||||
2002-03-06 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* floatformat.c (floatformat_arm_ext_big): Delete definition.
|
||||
|
@ -230,13 +230,17 @@ splay_tree_foreach_helper (sp, node, fn, data)
|
||||
|
||||
/* An allocator and deallocator based on xmalloc. */
|
||||
static void *
|
||||
splay_tree_xmalloc_allocate (int size, void *data)
|
||||
splay_tree_xmalloc_allocate (size, data)
|
||||
int size;
|
||||
void *data ATTRIBUTE_UNUSED;
|
||||
{
|
||||
return xmalloc (size);
|
||||
}
|
||||
|
||||
static void
|
||||
splay_tree_xmalloc_deallocate (void *object, void *data)
|
||||
splay_tree_xmalloc_deallocate (object, data)
|
||||
void *object;
|
||||
void *data ATTRIBUTE_UNUSED;
|
||||
{
|
||||
free (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user