~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/dynamic_array.h

  • Committer: Lee Bieber
  • Date: 2011-02-24 03:20:47 UTC
  • mfrom: (2196.1.4 build)
  • Revision ID: kalebral@gmail.com-20110224032047-avmw06iwww3m73cw
Merge Andrew - 723653: Docs day first pass fixes 
Merge Brian - Puts back in support for COM_KILL, Also adds back in the INTERACTIVE flag, and creates a DD to track sessions/check on usage
Merge Olaf - 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)