diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index f42c3e97b97..2080a6f40b7 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -327,6 +327,10 @@ extern void enlarge_buffer_text (struct buffer *, ptrdiff_t); | |||
| 327 | #define BYTE_TO_CHAR(bytepos) \ | 327 | #define BYTE_TO_CHAR(bytepos) \ |
| 328 | (buf_bytepos_to_charpos (current_buffer, bytepos)) | 328 | (buf_bytepos_to_charpos (current_buffer, bytepos)) |
| 329 | 329 | ||
| 330 | /* For those very rare cases where you may have a "random" pointer into | ||
| 331 | the middle of a multibyte char, this moves to the next boundary. */ | ||
| 332 | extern ptrdiff_t advance_to_char_boundary (ptrdiff_t byte_pos); | ||
| 333 | |||
| 330 | /* Convert PTR, the address of a byte in the buffer, into a byte position. */ | 334 | /* Convert PTR, the address of a byte in the buffer, into a byte position. */ |
| 331 | 335 | ||
| 332 | #define PTR_BYTE_POS(ptr) \ | 336 | #define PTR_BYTE_POS(ptr) \ |