From: Gerd Moellmann Date: Thu, 16 Sep 1999 20:19:52 +0000 (+0000) Subject: [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. X-Git-Tag: emacs-pretest-21.0.90~6697 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b8e8eeb646e9ddb77469948f74eeda98147e2143;p=emacs.git [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. --- 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)))