summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/cstrpool.c
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
committer ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
commit4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch)
tree55eccacfca0e69435d0d4e6615205310ca11f271 /src/lib/util/cstrpool.c
parentd132946c6f45aa8d271c6180e86f72dd08243048 (diff)
parent229785f695b26c702c8490792611f59d0366a933 (diff)
Merge pull request #5 from mamedev/master
Sync to base master
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..dfb41e25232 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)
{