~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/dynamic_array.h

  • Committer: Eric Day
  • Date: 2009-11-10 21:50:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1218.
  • Revision ID: eday@oddments.org-20091110215022-0b2nqmurv7b2l6wo
Duplicated oldlibdrizzle module, one for Drizzle protocol and one for MySQL, per Brian's request from merge proposal. Port options are now --drizzle-protocol-port and --mysql-protocol-port.

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 */