aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-05-03 11:12:42 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-03 11:12:42 +0200
commit3a1b14314b9b7c00aa78eee0b2aa5b492f2dd40f (patch)
treecaa57018e8f2c1fe0585642f609ab8f11a837afc
parentdc012cb59daa9f5425871ef94e001f4dbdecc5a4 (diff)
downloadvis-3a1b14314b9b7c00aa78eee0b2aa5b492f2dd40f.tar.gz
vis-3a1b14314b9b7c00aa78eee0b2aa5b492f2dd40f.tar.xz
text: add miscellaneous documentation section
-rw-r--r--doc/text.rst6
-rw-r--r--text.h19
2 files changed, 17 insertions, 8 deletions
diff --git a/doc/text.rst b/doc/text.rst
index 210336b..767bf29 100644
--- 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
index d53d1ed..607f239 100644
--- 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);