390.1.2
by Monty Taylor
Fixed copyright headers in drizzled/ |
1 |
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
3 |
*
|
|
4 |
* Copyright (C) 2008 Sun Microsystems
|
|
5 |
*
|
|
6 |
* This program is free software; you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation; version 2 of the License.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18 |
*/
|
|
243.1.5
by Jay Pipes
* Pulled the remainder of the log and parse stuff out into |
19 |
|
1122.2.10
by Monty Taylor
Fixed all of the include guards. |
20 |
#ifndef DRIZZLED_SQL_ALLOC_H
|
21 |
#define DRIZZLED_SQL_ALLOC_H
|
|
243.1.5
by Jay Pipes
* Pulled the remainder of the log and parse stuff out into |
22 |
|
575.1.6
by Monty Taylor
Cleaned up some headers for PCH. |
23 |
#include <mysys/my_alloc.h> |
575.4.7
by Monty Taylor
More header cleanup. |
24 |
#include <mystrings/m_ctype.h> |
390.1.6
by Monty Taylor
Oh dear god the changes. The changes. I'd tell you what they are, but I'd just be making stuff up. Suffice it to day it's mostly all around splitting files in libdrizzle into different files and removing interdepends. And whatever else I happened to see... |
25 |
|
575.1.5
by Monty Taylor
Moved stuff to handlerton.cc |
26 |
class Session; |
520.8.6
by Monty Taylor
Removed handler from common_includes. |
27 |
|
629.2.7
by Monty Taylor
Fixed a couple of memory buffer size issues. |
28 |
void init_sql_alloc(MEM_ROOT *root, size_t block_size, size_t pre_alloc_size); |
243.1.5
by Jay Pipes
* Pulled the remainder of the log and parse stuff out into |
29 |
void *sql_alloc(size_t); |
30 |
void *sql_calloc(size_t); |
|
31 |
char *sql_strdup(const char *str); |
|
32 |
char *sql_strmake(const char *str, size_t len); |
|
33 |
void *sql_memdup(const void * ptr, size_t size); |
|
34 |
void sql_element_free(void *ptr); |
|
520.1.22
by Brian Aker
Second pass of thd cleanup |
35 |
void sql_kill(Session *session, ulong id, bool only_kill_query); |
36 |
char* query_table_status(Session *session,const char *db,const char *table_name); |
|
243.1.5
by Jay Pipes
* Pulled the remainder of the log and parse stuff out into |
37 |
|
520.8.6
by Monty Taylor
Removed handler from common_includes. |
38 |
/* mysql standard class memory allocator */
|
39 |
class Sql_alloc |
|
40 |
{
|
|
41 |
public: |
|
42 |
static void *operator new(size_t size) throw () |
|
43 |
{
|
|
44 |
return sql_alloc(size); |
|
45 |
}
|
|
46 |
static void *operator new[](size_t size) |
|
47 |
{
|
|
48 |
return sql_alloc(size); |
|
49 |
}
|
|
50 |
static void *operator new[](size_t size, MEM_ROOT *mem_root) throw () |
|
51 |
{ return alloc_root(mem_root, size); } |
|
52 |
static void *operator new(size_t size, MEM_ROOT *mem_root) throw () |
|
53 |
{ return alloc_root(mem_root, size); } |
|
641
by Brian Aker
Merge (plus Solaris warning fixes) |
54 |
static void operator delete(void *, size_t) |
575.4.7
by Monty Taylor
More header cleanup. |
55 |
{ } |
641
by Brian Aker
Merge (plus Solaris warning fixes) |
56 |
static void operator delete(void *, MEM_ROOT *) |
57 |
{ /* never called */ } |
|
58 |
static void operator delete[](void *, MEM_ROOT *) |
|
59 |
{ /* never called */ } |
|
60 |
static void operator delete[](void *, size_t) |
|
575.4.7
by Monty Taylor
More header cleanup. |
61 |
{ } |
520.8.6
by Monty Taylor
Removed handler from common_includes. |
62 |
#ifdef HAVE_purify
|
63 |
bool dummy; |
|
64 |
inline Sql_alloc() :dummy(0) {} |
|
65 |
inline ~Sql_alloc() {} |
|
66 |
#else
|
|
67 |
inline Sql_alloc() {} |
|
68 |
inline ~Sql_alloc() {} |
|
69 |
#endif
|
|
70 |
||
71 |
};
|
|
72 |
||
1122.2.10
by Monty Taylor
Fixed all of the include guards. |
73 |
#endif /* DRIZZLED_SQL_ALLOC_H */ |