summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/cstrpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/cstrpool.c')
-rw-r--r--src/lib/util/cstrpool.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/lib/util/cstrpool.c b/src/lib/util/cstrpool.c
index b77557c1056..36c5ff694bb 100644
--- a/src/lib/util/cstrpool.c
+++ b/src/lib/util/cstrpool.c
@@ -70,10 +70,13 @@ bool const_string_pool::contains(const char *string)
return false;
}
-
-//-------------------------------------------------
-// pool_chunk - constructor
-//-------------------------------------------------
+/**
+ * @fn const_string_pool::pool_chunk::pool_chunk()
+ *
+ * @brief -------------------------------------------------
+ * pool_chunk - constructor
+ * -------------------------------------------------.
+ */
const_string_pool::pool_chunk::pool_chunk()
: m_next(NULL),
@@ -81,10 +84,17 @@ const_string_pool::pool_chunk::pool_chunk()
{
}
-
-//-------------------------------------------------
-// add - add a string to this pool
-//-------------------------------------------------
+/**
+ * @fn const char *const_string_pool::pool_chunk::add(const char *string)
+ *
+ * @brief -------------------------------------------------
+ * add - add a string to this pool
+ * -------------------------------------------------.
+ *
+ * @param string The string to add.
+ *
+ * @return null if it fails, else a char*.
+ */
const char *const_string_pool::pool_chunk::add(const char *string)
{