binutils-gdb/mmalloc/mmalloc.h
Jason Molenda c93a17b7ab * configure.in: add AC_HEADER_STDC check.
* mmalloc.h: check if STDC_HEADERS instead of __STDC__.

        * mmprivate.h: check if STDC_HEADERS instead of __STDC__.

This change is necessary to build under AIX 3.2.5 w/ cc after Stan's
Oct 24 change.  I'm not convinced that changing mmalloc.h in this way
is such a good thing--if a directory that doesn't use autoconf (or one
that DOES use autoconf but doesn't put all the defines on the command
line), and it includes mmalloc.h, the right thing won't happen.

I believe gdb is the only directory which uses mmalloc, though, so
it should be OK.
1995-11-05 03:12:15 +00:00

54 lines
1.2 KiB
C

#ifndef MMALLOC_H
#define MMALLOC_H 1
#ifdef STDC_HEADERS
#include <stddef.h>
#endif
#include "ansidecl.h"
/* Allocate SIZE bytes of memory. */
extern PTR mmalloc PARAMS ((PTR, size_t));
/* Re-allocate the previously allocated block in PTR, making the new block
SIZE bytes long. */
extern PTR mrealloc PARAMS ((PTR, PTR, size_t));
/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
extern PTR mcalloc PARAMS ((PTR, size_t, size_t));
/* Free a block allocated by `mmalloc', `mrealloc' or `mcalloc'. */
extern void mfree PARAMS ((PTR, PTR));
/* Allocate SIZE bytes allocated to ALIGNMENT bytes. */
extern PTR mmemalign PARAMS ((PTR, size_t, size_t));
/* Allocate SIZE bytes on a page boundary. */
extern PTR mvalloc PARAMS ((PTR, size_t));
/* Activate a standard collection of debugging hooks. */
extern int mmcheck PARAMS ((PTR, void (*) (void)));
/* Pick up the current statistics. (see FIXME elsewhere) */
extern struct mstats mmstats PARAMS ((PTR));
extern PTR mmalloc_attach PARAMS ((int, PTR));
extern PTR mmalloc_detach PARAMS ((PTR));
extern int mmalloc_setkey PARAMS ((PTR, int, PTR));
extern PTR mmalloc_getkey PARAMS ((PTR, int));
extern int mmalloc_errno PARAMS ((PTR));
#endif /* MMALLOC_H */