Commit 0afdfe38 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(struct buffer_text): Add comment about moving

buffer text if REL_ALLOC is defined.
parent bd84ce86
......@@ -388,7 +388,12 @@ extern int _fetch_multibyte_char_len;
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. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment