Mercurial > emacs
changeset 26486:b16a6381a87b
(struct buffer_text): Add comment about moving
buffer text if REL_ALLOC is defined.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 18 Nov 1999 13:31:04 +0000 |
parents | d1f081e4844a |
children | 7c51cdc36b3a |
files | src/buffer.h |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.h Thu Nov 18 13:11:37 1999 +0000 +++ b/src/buffer.h Thu Nov 18 13:31:04 1999 +0000 @@ -388,7 +388,12 @@ struct buffer_text { - unsigned char *beg; /* Actual address of buffer contents. */ + /* Actual address of buffer contents. If REL_ALLOC is defined, + this address might change when blocks are relocated which can + e.g. happen when malloc is called. So, don't pass a pointer + into a buffer's text to functions that malloc. */ + unsigned char *beg; + int gpt; /* Char pos of gap in buffer. */ int z; /* Char pos of end of buffer. */ int gpt_byte; /* Byte pos of gap in buffer. */