diff options
author | Guilhem Bichot <guilhem@mysql.com> | 2009-08-04 13:25:19 +0200 |
---|---|---|
committer | Guilhem Bichot <guilhem@mysql.com> | 2009-08-04 13:25:19 +0200 |
commit | b57e4dbd88671df86e2cf39aff5178976d710b64 (patch) | |
tree | 32be2bfec3ca062c65566c60ecf59b673d1f97e9 /storage/innobase/include/ut0vec.h | |
parent | 1a0c2153a036296785dcdfa7b5f4974515616e11 (diff) | |
parent | 94efc1c6b084ed531b513e70fb66e7b7a1186b56 (diff) | |
download | mariadb-git-b57e4dbd88671df86e2cf39aff5178976d710b64.tar.gz |
Creation of mysql-trunk = {summit + "Innodb plugin replacing the builtin"}:
bzr branch mysql-5.1-performance-version mysql-trunk # Summit
cd mysql-trunk
bzr merge mysql-5.1-innodb_plugin # which is 5.1 + Innodb plugin
bzr rm innobase # remove the builtin
Next step: build, test fixes.
Diffstat (limited to 'storage/innobase/include/ut0vec.h')
-rw-r--r-- | storage/innobase/include/ut0vec.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/storage/innobase/include/ut0vec.h b/storage/innobase/include/ut0vec.h deleted file mode 100644 index e0cc4dfb009..00000000000 --- a/storage/innobase/include/ut0vec.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef IB_VECTOR_H -#define IB_VECTOR_H - -#include "univ.i" -#include "mem0mem.h" - -typedef struct ib_vector_struct ib_vector_t; - -/* An automatically resizing vector datatype with the following properties: - - -Contains void* items. - - -The items are owned by the caller. - - -All memory allocation is done through a heap owned by the caller, who is - responsible for freeing it when done with the vector. - - -When the vector is resized, the old memory area is left allocated since it - uses the same heap as the new memory area, so this is best used for - relatively small or short-lived uses. -*/ - -/******************************************************************** -Create a new vector with the given initial size. */ - -ib_vector_t* -ib_vector_create( -/*=============*/ - /* out: vector */ - mem_heap_t* heap, /* in: heap */ - ulint size); /* in: initial size */ - -/******************************************************************** -Push a new element to the vector, increasing its size if necessary. */ - -void -ib_vector_push( -/*===========*/ - ib_vector_t* vec, /* in: vector */ - void* elem); /* in: data element */ - -/******************************************************************** -Get the number of elements in the vector. */ -UNIV_INLINE -ulint -ib_vector_size( -/*===========*/ - /* out: number of elements in vector */ - ib_vector_t* vec); /* in: vector */ - -/******************************************************************** -Get the n'th element. */ -UNIV_INLINE -void* -ib_vector_get( -/*==========*/ - /* out: n'th element */ - ib_vector_t* vec, /* in: vector */ - ulint n); /* in: element index to get */ - -/* See comment at beginning of file. */ -struct ib_vector_struct { - mem_heap_t* heap; /* heap */ - void** data; /* data elements */ - ulint used; /* number of elements currently used */ - ulint total; /* number of elements allocated */ -}; - -#ifndef UNIV_NONINL -#include "ut0vec.ic" -#endif - -#endif |