From dc012cb59daa9f5425871ef94e001f4dbdecc5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 3 May 2017 10:54:02 +0200 Subject: text: rename text_sigbus to text_mmaped Add casts to uintptr_t to avoid unrelated pointer comparisons. --- text.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'text.h') diff --git a/text.h b/text.h index 4d4f9bc..d53d1ed 100644 --- a/text.h +++ b/text.h @@ -254,9 +254,11 @@ Mark text_mark_set(Text*, size_t pos); size_t text_mark_get(Text*, Mark); /** @} */ -/* query whether `addr` is part of a memory mapped region associated with - * this text instance */ -bool text_sigbus(Text*, const char *addr); +/** + * Check whether ``ptr`` is part of a memory mapped region associated with + * this text instance. + */ +bool text_mmaped(Text*, const char *ptr); /** * @defgroup save -- cgit v1.2.3