diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 10:54:02 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 11:07:05 +0200 |
| commit | dc012cb59daa9f5425871ef94e001f4dbdecc5a4 (patch) | |
| tree | 83389f7d37a2f4319e4b8a1f23fc501100b158fa /text.h | |
| parent | 596e9ac6b361a726f97c390bc272f6c7506d3cb5 (diff) | |
| download | vis-dc012cb59daa9f5425871ef94e001f4dbdecc5a4.tar.gz vis-dc012cb59daa9f5425871ef94e001f4dbdecc5a4.tar.xz | |
text: rename text_sigbus to text_mmaped
Add casts to uintptr_t to avoid unrelated pointer comparisons.
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |
