vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 14a144a2347a496d75b13e260e8edeebf6783402 parent cf5f89a59312ec8de50396572dc1a2091cc883fe Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 3 May 2017 11:12:42 +0200 text: add miscellaneous documentation section Diffstat:
| M | doc/text.rst | | | 6 | ++++++ |
| M | text.h | | | 19 | +++++++++++-------- |
2 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/doc/text.rst b/doc/text.rst @@ -121,3 +121,9 @@ Save .. doxygengroup:: save :content-only: + +Miscellaneous +------------- + +.. doxygengroup:: misc + :content-only: diff --git a/text.h b/text.h @@ -252,15 +252,8 @@ Mark text_mark_set(Text*, size_t pos); * @return The byte position or `EPOS` for an invalid mark. */ size_t text_mark_get(Text*, Mark); -/** @} */ - -/** - * Check whether ``ptr`` is part of a memory mapped region associated with - * this text instance. - */ -bool text_mmaped(Text*, const char *ptr); - /** + * @} * @defgroup save * @{ */ @@ -352,6 +345,16 @@ ssize_t text_write(Text*, int fd); * @return The number of bytes written or ``-1`` in case of an error. */ ssize_t text_write_range(Text*, Filerange*, int fd); +/** + * @} + * @defgroup misc + * @{ + */ +/** + * Check whether ``ptr`` is part of a memory mapped region associated with + * this text instance. + */ +bool text_mmaped(Text*, const char *ptr); /** @} */ size_t text_insert_newline(Text*, size_t pos);