Mercurial > emacs
changeset 27739:e272d652619a
(Fget_buffer_create, Fmake_indirect_buffer): Use
allocate_buffer instead of xmalloc.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 17 Feb 2000 15:21:58 +0000 |
parents | 581c76c41ca4 |
children | 048c82411361 |
files | src/buffer.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Thu Feb 17 15:21:21 2000 +0000 +++ b/src/buffer.c Thu Feb 17 15:21:58 2000 +0000 @@ -330,7 +330,7 @@ if (XSTRING (name)->size == 0) error ("Empty string for buffer name is not allowed"); - b = (struct buffer *) xmalloc (sizeof (struct buffer)); + b = (struct buffer *) allocate_buffer (); b->size = sizeof (struct buffer) / sizeof (EMACS_INT); @@ -427,8 +427,7 @@ if (XSTRING (name)->size == 0) error ("Empty string for buffer name is not allowed"); - b = (struct buffer *) xmalloc (sizeof (struct buffer)); - + b = (struct buffer *) allocate_buffer (); b->size = sizeof (struct buffer) / sizeof (EMACS_INT); if (XBUFFER (base_buffer)->base_buffer)