0003d704ac
There is no longer justification for placing a typedef employed in overriding that alloc.h message handler in the procps.h header file. So this commit just moves it to the alloc.h header file itself where's it's needed! [ gosh, sure wish i had thought to relocate this guy ] [ when the changes in the 1st commit shown were made ] Reference(s): . most recent related changes commit18e5aecd2b
. place where it *should* have been relocated commit2865ded64e
Signed-off-by: Jim Warner <james.warner@comcast.net>
21 lines
521 B
C
21 lines
521 B
C
#ifndef PROCPS_PROC_ALLOC_H
|
|
#define PROCPS_PROC_ALLOC_H
|
|
|
|
#include "procps.h"
|
|
|
|
EXTERN_C_BEGIN
|
|
|
|
typedef void (*message_fn)(const char *__restrict, ...) __attribute__((format(printf,1,2)));
|
|
|
|
/* change xalloc_err_handler to override the default fprintf(stderr... */
|
|
extern message_fn xalloc_err_handler;
|
|
|
|
extern void *xcalloc(unsigned int size) MALLOC;
|
|
extern void *xmalloc(size_t size) MALLOC;
|
|
extern void *xrealloc(void *oldp, unsigned int size) MALLOC;
|
|
extern char *xstrdup(const char *str) MALLOC;
|
|
|
|
EXTERN_C_END
|
|
|
|
#endif
|