~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_list.h

  • Committer: Monty Taylor
  • Date: 2008-10-30 19:42:06 UTC
  • mto: (520.4.38 devel)
  • mto: This revision was merged to the branch mainline in revision 572.
  • Revision ID: monty@inaugust.com-20081030194206-fzus6yqlw1ekru65
Removed handler from common_includes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
  }
68
68
} SQL_LIST;
69
69
 
70
 
/* mysql standard class memory allocator */
71
 
class Sql_alloc
72
 
{
73
 
public:
74
 
  static void *operator new(size_t size) throw ()
75
 
  {
76
 
    return sql_alloc(size);
77
 
  }
78
 
  static void *operator new[](size_t size)
79
 
  {
80
 
    return sql_alloc(size);
81
 
  }
82
 
  static void *operator new[](size_t size, MEM_ROOT *mem_root) throw ()
83
 
  { return alloc_root(mem_root, size); }
84
 
  static void *operator new(size_t size, MEM_ROOT *mem_root) throw ()
85
 
  { return alloc_root(mem_root, size); }
86
 
  static void operator delete(void *ptr __attribute__((unused)),
87
 
                              size_t size __attribute__((unused)))
88
 
  { TRASH(ptr, size); }
89
 
  static void operator delete(void *ptr __attribute__((unused)),
90
 
                              MEM_ROOT *mem_root __attribute__((unused)))
91
 
  { /* never called */ }
92
 
  static void operator delete[](void *ptr __attribute__((unused)),
93
 
                                MEM_ROOT *mem_root __attribute__((unused)))
94
 
  { /* never called */ }
95
 
  static void operator delete[](void *ptr __attribute__((unused)),
96
 
                                size_t size __attribute__((unused)))
97
 
  { TRASH(ptr, size); }
98
 
#ifdef HAVE_purify
99
 
  bool dummy;
100
 
  inline Sql_alloc() :dummy(0) {}
101
 
  inline ~Sql_alloc() {}
102
 
#else
103
 
  inline Sql_alloc() {}
104
 
  inline ~Sql_alloc() {}
105
 
#endif
106
 
 
107
 
};
108
 
 
109
 
 
110
70
/*
111
71
  Basic single linked list
112
72
  Used for item and item_buffs.