aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/buffer.h4
-rw-r--r--src/profiler.c2
2 files changed, 3 insertions, 3 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)
diff --git a/src/profiler.c b/src/profiler.c
index 43409688a93..12d75012c79 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -325,7 +325,7 @@ record_backtrace (struct profiler_log *plog, EMACS_INT count)
325static void 325static void
326add_sample (struct profiler_log *plog, EMACS_INT count) 326add_sample (struct profiler_log *plog, EMACS_INT count)
327{ 327{
328 if (EQ (backtrace_top_function (), QAutomatic_GC)) /* bug#60237 */ 328 if (BASE_EQ (backtrace_top_function (), QAutomatic_GC)) /* bug#60237 */
329 /* Special case the time-count inside GC because the hash-table 329 /* Special case the time-count inside GC because the hash-table
330 code is not prepared to be used while the GC is running. 330 code is not prepared to be used while the GC is running.
331 More specifically it uses ASIZE at many places where it does 331 More specifically it uses ASIZE at many places where it does