+ (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)
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