Miscellaneous corrections
* src/buffer.h (BUF_PTR_BYTE_POS): Fix comment. * src/profiler.c (add_sample): Use BASE_EQ.
This commit is contained in:
parent
9720e1a96e
commit
ed3d8bb298
2 changed files with 3 additions and 3 deletions
|
@ -1351,8 +1351,8 @@ BUF_CHAR_ADDRESS (struct buffer *buf, ptrdiff_t pos)
|
|||
+ (pos < buf->text->gpt ? 0 : buf->text->gap_size));
|
||||
}
|
||||
|
||||
/* Convert PTR, the address of a char in buffer BUF,
|
||||
into a character position. */
|
||||
/* Convert PTR, the address of a char in buffer BUF, into a byte
|
||||
position. */
|
||||
|
||||
INLINE ptrdiff_t
|
||||
BUF_PTR_BYTE_POS (struct buffer *buf, unsigned char *ptr)
|
||||
|
|
|
@ -325,7 +325,7 @@ record_backtrace (struct profiler_log *plog, EMACS_INT count)
|
|||
static void
|
||||
add_sample (struct profiler_log *plog, EMACS_INT count)
|
||||
{
|
||||
if (EQ (backtrace_top_function (), QAutomatic_GC)) /* bug#60237 */
|
||||
if (BASE_EQ (backtrace_top_function (), QAutomatic_GC)) /* bug#60237 */
|
||||
/* Special case the time-count inside GC because the hash-table
|
||||
code is not prepared to be used while the GC is running.
|
||||
More specifically it uses ASIZE at many places where it does
|
||||
|
|
Loading…
Add table
Reference in a new issue