11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
Place, Suite 330, Boston, MA 02111-1307 USA
17
17
*****************************************************************************/
19
/*******************************************************************//**
21
A vector of pointers to data items
23
Created 4/6/2006 Osku Salerma
24
************************************************************************/
26
19
#include "ut0vec.h"
28
21
#include "ut0vec.ic"
30
23
#include <string.h>
32
/****************************************************************//**
33
Create a new vector with the given initial size.
25
/********************************************************************
26
Create a new vector with the given initial size. */
39
mem_heap_t* heap, /*!< in: heap */
40
ulint size) /*!< in: initial size */
32
mem_heap_t* heap, /* in: heap */
33
ulint size) /* in: initial size */
56
/****************************************************************//**
49
/********************************************************************
57
50
Push a new element to the vector, increasing its size if necessary. */
62
ib_vector_t* vec, /*!< in: vector */
63
void* elem) /*!< in: data element */
55
ib_vector_t* vec, /* in: vector */
56
void* elem) /* in: data element */
65
58
if (vec->used >= vec->total) {