summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/cstrpool.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-06-07 17:37:34 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-06-07 17:37:34 +0200
commitb6ce8ee991c7e14ca214a2931bfbc4e4a5a0dc0f (patch)
treeda1e239053b7bfd9e841a103bbb36aefb71c4e7f /src/lib/util/cstrpool.c
parentb6a4cf45ca6fdf842b319806d61d638cf2d8b2d2 (diff)
Licenses for Raphael Nabet (nw)
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)
{