~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/dynamic_array.h

  • Committer: Mark Atwood
  • Date: 2011-08-17 19:14:47 UTC
  • mfrom: (2385.3.17 rf)
  • Revision ID: me@mark.atwood.name-20110817191447-h86yzddvycd0xmof
mergeĀ lp:~olafvdspek/drizzle/refactor6

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  uint32_t alloc_increment;
33
33
  uint32_t size_of_element;
34
34
 
 
35
  unsigned char* alloc();
 
36
  void free();
 
37
  void init(uint32_t element_size, uint32_t init_alloc, uint32_t alloc_increment);
35
38
  void push_back(void*);
36
39
 
37
40
  size_t size() const
47
50
  size_t elements;
48
51
};
49
52
 
50
 
#define my_init_dynamic_array(A,B,C,D) init_dynamic_array2(A,B,NULL,C,D)
51
 
#define my_init_dynamic_array_ci(A,B,C,D) init_dynamic_array2(A,B,NULL,C,D)
52
 
 
53
 
void init_dynamic_array2(DYNAMIC_ARRAY*, uint32_t element_size, void *init_buffer, uint32_t init_alloc, uint32_t alloc_increment);
54
 
unsigned char *alloc_dynamic(DYNAMIC_ARRAY *array);
55
 
unsigned char *pop_dynamic(DYNAMIC_ARRAY*);
56
 
void delete_dynamic(DYNAMIC_ARRAY *array);
57
 
 
58
53
} /* namespace drizzled */
59