Mercurial > emacs
changeset 25745:34d057fe496f
[REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 16 Sep 1999 20:19:52 +0000 |
parents | 8b89b961f7d1 |
children | 8690532ba294 |
files | src/buffer.h |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.h Thu Sep 16 20:19:41 1999 +0000 +++ b/src/buffer.h Thu Sep 16 20:19:52 1999 +0000 @@ -848,9 +848,15 @@ /* 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)))