From b8e8eeb646e9ddb77469948f74eeda98147e2143 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 16 Sep 1999 20:19:52 +0000 Subject: [PATCH] [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. --- src/buffer.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/buffer.h b/src/buffer.h index 89e3d24d2b6..1323541c537 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -848,9 +848,15 @@ extern Lisp_Object Vtransient_mark_mode; /* Allocation of buffer text. */ #ifdef REL_ALLOC -#define BUFFER_ALLOC(data,size) ((unsigned char *) r_alloc (&data, (size))) -#define BUFFER_REALLOC(data,size) ((unsigned char *) r_re_alloc (&data, (size))) -#define BUFFER_FREE(data) (r_alloc_free (&data)) + +extern char *r_alloc P_ ((char **, unsigned long)); +extern void r_alloc_free P_ ((char **ptr)); + +#define BUFFER_ALLOC(data,size) \ + ((unsigned char *) r_alloc ((char **)&data, (size))) +#define BUFFER_REALLOC(data,size) \ + ((unsigned char *) r_re_alloc ((char **) &data, (size))) +#define BUFFER_FREE(data) (r_alloc_free ((char **) &data)) #define R_ALLOC_DECLARE(var,data) (r_alloc_declare (&var, (data))) #else #define BUFFER_ALLOC(data,size) (data = (unsigned char *) malloc ((size))) -- 2.39.5