~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/dynamic_array.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-14 20:42:14 UTC
  • mto: (2318.6.3 refactor7)
  • mto: This revision was merged to the branch mainline in revision 2337.
  • Revision ID: olafvdspek@gmail.com-20110614204214-gswvc2b6fr113758
Remove malloc NULL check. Just die.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
#define my_init_dynamic_array(A,B,C,D) init_dynamic_array2(A,B,NULL,C,D)
51
51
#define my_init_dynamic_array_ci(A,B,C,D) init_dynamic_array2(A,B,NULL,C,D)
52
52
 
53
 
bool init_dynamic_array2(DYNAMIC_ARRAY *array,uint32_t element_size,
54
 
                                   void *init_buffer, uint32_t init_alloc,
55
 
                                   uint32_t alloc_increment);
 
53
void init_dynamic_array2(DYNAMIC_ARRAY*, uint32_t element_size, void *init_buffer, uint32_t init_alloc, uint32_t alloc_increment);
56
54
unsigned char *alloc_dynamic(DYNAMIC_ARRAY *array);
57
55
unsigned char *pop_dynamic(DYNAMIC_ARRAY*);
58
56
void delete_dynamic(DYNAMIC_ARRAY *array);