OSDN Git Service

The position of the function was collected in every group which related.
authortsutsumi <>
Sat, 13 Sep 2003 05:26:40 +0000 (05:26 +0000)
committertsutsumi <>
Sat, 13 Sep 2003 05:26:40 +0000 (05:26 +0000)
src/ccunit/CCUnitList.c

index c5f5ac7..61d09c0 100755 (executable)
 
 /**
  * @file
- * implements List class.
+ * Linked list module implementation.
  */
 #include <ccunit/CCUnitList.h>
 
+/** @addtogroup CCUnitList
+ * @{
+ */
+
+/** @defgroup CCUnitListCell ListCell
+ * Linked list cell.
+ * @{
+ */
+
 /**
  * List Cell class.
  */
@@ -36,23 +45,6 @@ typedef struct CCUnitListCell
   void* contents;                              /**< list content object  */
 } CCUnitListCell;
 
-CCUnitList* ccunit_initList (CCUnitList* list)
-{
-  list->length = 0;
-  list->head = NULL;
-  list->tailp = &list->head;
-  list->isAllocated = false;
-  return list;
-}
-
-inline CCUnitList* ccunit_newList ()
-{
-  CCUnitList* newList = calloc (1, sizeof (*newList));
-  ccunit_initList (newList);
-  newList->isAllocated = true;
-  return newList;
-}
-
 /**
  * create new list cell object.
  * @return new list cell object.
@@ -71,6 +63,25 @@ static inline void ccunit_deleteListCell (CCUnitListCell* cell)
   safe_free (cell);
 }
 
+/** @} */
+
+CCUnitList* ccunit_initList (CCUnitList* list)
+{
+  list->length = 0;
+  list->head = NULL;
+  list->tailp = &list->head;
+  list->isAllocated = false;
+  return list;
+}
+
+inline CCUnitList* ccunit_newList ()
+{
+  CCUnitList* newList = calloc (1, sizeof (*newList));
+  ccunit_initList (newList);
+  newList->isAllocated = true;
+  return newList;
+}
+
 void ccunit_addList (CCUnitList* list, void* contents)
 {
   CCUnitListCell* cell = ccunit_newListCell ();
@@ -133,3 +144,5 @@ inline void ccunit_deleteListIterator (struct CCUnitListIterator* it)
   if (it && it->isAllocated)
     safe_free (it);
 }
+
+/** @} */