~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/dynamic_array.h

Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
typedef struct st_dynamic_array
30
30
{
31
31
  unsigned char *buffer;
32
 
  size_t elements,max_element;
 
32
  size_t elements;
 
33
  size_t max_element;
33
34
  uint32_t alloc_increment;
34
35
  uint32_t size_of_element;
 
36
 
 
37
  size_t size() const
 
38
  {
 
39
    return elements;
 
40
  }
35
41
} DYNAMIC_ARRAY;
36
42
 
37
43
#define my_init_dynamic_array(A,B,C,D) init_dynamic_array2(A,B,NULL,C,D)