diff options
| author | Gerd Moellmann | 1999-11-18 13:31:04 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-18 13:31:04 +0000 |
| commit | 0afdfe3895469bcc7f47d5af46633e7c24c08e3c (patch) | |
| tree | 21734343b6eacbf6c82a602b9a7622823208ac1f /src/buffer.h | |
| parent | bd84ce869a05568f0a416a53bd90adf961427e55 (diff) | |
| download | emacs-0afdfe3895469bcc7f47d5af46633e7c24c08e3c.tar.gz emacs-0afdfe3895469bcc7f47d5af46633e7c24c08e3c.zip | |
(struct buffer_text): Add comment about moving
buffer text if REL_ALLOC is defined.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h index a3e87c8f205..e37cd91c87e 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -388,7 +388,12 @@ extern int _fetch_multibyte_char_len; | |||
| 388 | 388 | ||
| 389 | struct buffer_text | 389 | struct buffer_text |
| 390 | { | 390 | { |
| 391 | unsigned char *beg; /* Actual address of buffer contents. */ | 391 | /* Actual address of buffer contents. If REL_ALLOC is defined, |
| 392 | this address might change when blocks are relocated which can | ||
| 393 | e.g. happen when malloc is called. So, don't pass a pointer | ||
| 394 | into a buffer's text to functions that malloc. */ | ||
| 395 | unsigned char *beg; | ||
| 396 | |||
| 392 | int gpt; /* Char pos of gap in buffer. */ | 397 | int gpt; /* Char pos of gap in buffer. */ |
| 393 | int z; /* Char pos of end of buffer. */ | 398 | int z; /* Char pos of end of buffer. */ |
| 394 | int gpt_byte; /* Byte pos of gap in buffer. */ | 399 | int gpt_byte; /* Byte pos of gap in buffer. */ |