diff options
Diffstat (limited to 'storage/xtradb/ut/ut0vec.c')
-rw-r--r-- | storage/xtradb/ut/ut0vec.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/storage/xtradb/ut/ut0vec.c b/storage/xtradb/ut/ut0vec.c index 69b7bec701a..45f2bc9771f 100644 --- a/storage/xtradb/ut/ut0vec.c +++ b/storage/xtradb/ut/ut0vec.c @@ -16,21 +16,28 @@ Place, Suite 330, Boston, MA 02111-1307 USA *****************************************************************************/ +/*******************************************************************//** +@file ut/ut0vec.c +A vector of pointers to data items + +Created 4/6/2006 Osku Salerma +************************************************************************/ + #include "ut0vec.h" #ifdef UNIV_NONINL #include "ut0vec.ic" #endif #include <string.h> -/******************************************************************** -Create a new vector with the given initial size. */ +/****************************************************************//** +Create a new vector with the given initial size. +@return vector */ UNIV_INTERN ib_vector_t* ib_vector_create( /*=============*/ - /* out: vector */ - mem_heap_t* heap, /* in: heap */ - ulint size) /* in: initial size */ + mem_heap_t* heap, /*!< in: heap */ + ulint size) /*!< in: initial size */ { ib_vector_t* vec; @@ -46,14 +53,14 @@ ib_vector_create( return(vec); } -/******************************************************************** +/****************************************************************//** Push a new element to the vector, increasing its size if necessary. */ UNIV_INTERN void ib_vector_push( /*===========*/ - ib_vector_t* vec, /* in: vector */ - void* elem) /* in: data element */ + ib_vector_t* vec, /*!< in: vector */ + void* elem) /*!< in: data element */ { if (vec->used >= vec->total) { void** new_data; |