Mercurial > emacs
comparison src/alloc.c @ 39228:fcb8e48eec89
allocate_buffer): Call VALIDATE_LISP_STORAGE.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 10 Sep 2001 13:41:21 +0000 |
parents | 95f65d0a108e |
children | aff361cfdccb |
comparison
equal
deleted
inserted
replaced
39227:377e5f02169a | 39228:fcb8e48eec89 |
---|---|
609 a call to lisp_malloc. */ | 609 a call to lisp_malloc. */ |
610 | 610 |
611 struct buffer * | 611 struct buffer * |
612 allocate_buffer () | 612 allocate_buffer () |
613 { | 613 { |
614 return (struct buffer *) lisp_malloc (sizeof (struct buffer), | 614 struct buffer *b |
615 MEM_TYPE_BUFFER); | 615 = (struct buffer *) lisp_malloc (sizeof (struct buffer), |
616 MEM_TYPE_BUFFER); | |
617 VALIDATE_LISP_STORAGE (b, sizeof *b); | |
618 return b; | |
616 } | 619 } |
617 | 620 |
618 | 621 |
619 /* Free BLOCK. This must be called to free memory allocated with a | 622 /* Free BLOCK. This must be called to free memory allocated with a |
620 call to lisp_malloc. */ | 623 call to lisp_malloc. */ |