~eday/drizzle/eday-dev

« back to all changes in this revision

Viewing changes to drizzled/dynamic_array.h

  • Committer: Eric Day
  • Date: 2010-01-07 20:02:38 UTC
  • mfrom: (971.3.291 staging)
  • Revision ID: eday@oddments.org-20100107200238-uqw8v6kv9pl7nny5
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef MYSYS_DYNAMIC_ARRAY_H
22
 
#define MYSYS_DYNAMIC_ARRAY_H
 
21
#ifndef DRIZZLED_DYNAMIC_ARRAY_H
 
22
#define DRIZZLED_DYNAMIC_ARRAY_H
 
23
 
 
24
#include <stddef.h>
 
25
 
 
26
#ifdef __cplusplus
 
27
extern "C" {
 
28
#endif
23
29
 
24
30
typedef struct st_dynamic_array
25
31
{
53
59
#define reset_dynamic(array) ((array)->elements= 0)
54
60
#define sort_dynamic(A,cmp) my_qsort((A)->buffer, (A)->elements, (A)->size_of_element, (cmp))
55
61
 
 
62
#ifdef __cplusplus
 
63
}
 
64
#endif
56
65
 
57
 
#endif /* MYSYS_DYNAMIC_ARRAY_H */
 
66
#endif /* DRIZZLED_DYNAMIC_ARRAY_H */