~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/dynamic_array.h

  • Committer: Brian Aker
  • Date: 2009-11-12 16:13:04 UTC
  • mfrom: (1211.1.7 staging)
  • Revision ID: brian@gaz-20091112161304-opamiauv36fg0n6u
Rollup of Brian, Padraig, and Stewart patches.

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 DRIZZLED_DYNAMIC_ARRAY_H
22
 
#define DRIZZLED_DYNAMIC_ARRAY_H
23
 
 
24
 
#include <stddef.h>
25
 
 
26
 
namespace drizzled
27
 
{
 
21
#ifndef MYSYS_DYNAMIC_ARRAY_H
 
22
#define MYSYS_DYNAMIC_ARRAY_H
28
23
 
29
24
typedef struct st_dynamic_array
30
25
{
58
53
#define reset_dynamic(array) ((array)->elements= 0)
59
54
#define sort_dynamic(A,cmp) my_qsort((A)->buffer, (A)->elements, (A)->size_of_element, (cmp))
60
55
 
61
 
} /* namespace drizzled */
62
56
 
63
 
#endif /* DRIZZLED_DYNAMIC_ARRAY_H */
 
57
#endif /* MYSYS_DYNAMIC_ARRAY_H */