~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/dynamic_array.h

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef MYSYS_DYNAMIC_ARRAY_H
22
22
#define MYSYS_DYNAMIC_ARRAY_H
23
23
 
 
24
#ifdef __cplusplus
 
25
extern "C" {
 
26
#endif
 
27
 
24
28
typedef struct st_dynamic_array
25
29
{
26
30
  unsigned char *buffer;
53
57
#define reset_dynamic(array) ((array)->elements= 0)
54
58
#define sort_dynamic(A,cmp) my_qsort((A)->buffer, (A)->elements, (A)->size_of_element, (cmp))
55
59
 
 
60
#ifdef __cplusplus
 
61
}
 
62
#endif
56
63
 
57
64
#endif /* MYSYS_DYNAMIC_ARRAY_H */