aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPo Lu2025-03-28 16:10:12 +0800
committerPo Lu2025-03-28 16:10:38 +0800
commited3d8bb298bf4c7ef39a08392ace3271686cd5c0 (patch)
tree70aa56a657ea1b41dfb3cfa40e3a3aa5c8c7c554 /src/buffer.h
parent9720e1a96ed78fb86b24787f9986f14bad108c96 (diff)
downloademacs-ed3d8bb298bf4c7ef39a08392ace3271686cd5c0.tar.gz
emacs-ed3d8bb298bf4c7ef39a08392ace3271686cd5c0.zip
Miscellaneous corrections
* src/buffer.h (BUF_PTR_BYTE_POS): Fix comment. * src/profiler.c (add_sample): Use BASE_EQ.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 5c0a6ab3118..d19ff22babd 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -1351,8 +1351,8 @@ BUF_CHAR_ADDRESS (struct buffer *buf, ptrdiff_t pos)
1351 + (pos < buf->text->gpt ? 0 : buf->text->gap_size)); 1351 + (pos < buf->text->gpt ? 0 : buf->text->gap_size));
1352} 1352}
1353 1353
1354/* Convert PTR, the address of a char in buffer BUF, 1354/* Convert PTR, the address of a char in buffer BUF, into a byte
1355 into a character position. */ 1355 position. */
1356 1356
1357INLINE ptrdiff_t 1357INLINE ptrdiff_t
1358BUF_PTR_BYTE_POS (struct buffer *buf, unsigned char *ptr) 1358BUF_PTR_BYTE_POS (struct buffer *buf, unsigned char *ptr)