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 |
*
|
|
1999.6.1
by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file |
4 |
* Copyright (C) 2008 Sun Microsystems, Inc.
|
390.1.2
by Monty Taylor
Fixed copyright headers in drizzled/ |
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 |
|
2234
by Brian Aker
Mass removal of ifdef/endif in favor of pragma once. |
20 |
#pragma once
|
243.1.5
by Jay Pipes
* Pulled the remainder of the log and parse stuff out into |
21 |
|
2173.2.1
by Monty Taylor
Fixes incorrect usage of include |
22 |
#include <drizzled/memory/root.h> |
23 |
#include <drizzled/visibility.h> |
|
2119.4.1
by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by |
24 |
|
2252.1.12
by Olaf van der Spek
Common fwd |
25 |
namespace drizzled { |
26 |
namespace memory { |
|
1253.1.6
by Monty Taylor
Moved mem_root functions into drizzled::memory:: namespace. |
27 |
|
2318.6.43
by Olaf van der Spek
Refactor |
28 |
void* sql_alloc(size_t); |
29 |
void* sql_calloc(size_t); |
|
30 |
char* sql_strdup(const char*); |
|
2318.9.11
by Olaf van der Spek
Use sql_strdup(str_ref) |
31 |
char* sql_strdup(str_ref); |
2318.6.43
by Olaf van der Spek
Refactor |
32 |
void* sql_memdup(const void*, size_t); |
243.1.5
by Jay Pipes
* Pulled the remainder of the log and parse stuff out into |
33 |
|
2119.4.1
by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by |
34 |
class DRIZZLED_API SqlAlloc |
520.8.6
by Monty Taylor
Removed handler from common_includes. |
35 |
{
|
36 |
public: |
|
2318.6.79
by Olaf van der Spek
Refactor |
37 |
static void* operator new(size_t size) |
38 |
{
|
|
39 |
return memory::sql_alloc(size); |
|
40 |
}
|
|
41 |
||
42 |
static void* operator new[](size_t size) |
|
43 |
{
|
|
44 |
return memory::sql_alloc(size); |
|
45 |
}
|
|
46 |
||
47 |
static void* operator new(size_t size, Root& root) |
|
48 |
{
|
|
49 |
return root.alloc(size); |
|
50 |
}
|
|
51 |
||
52 |
static void* operator new[](size_t size, Root& root) |
|
53 |
{
|
|
54 |
return root.alloc(size); |
|
55 |
}
|
|
56 |
||
57 |
static void* operator new(size_t size, Root* root) |
|
58 |
{
|
|
59 |
return root->alloc(size); |
|
60 |
}
|
|
61 |
||
62 |
static void* operator new[](size_t size, Root* root) |
|
63 |
{
|
|
64 |
return root->alloc(size); |
|
65 |
}
|
|
66 |
||
67 |
static void operator delete(void*) |
|
68 |
{
|
|
69 |
}
|
|
70 |
||
71 |
static void operator delete[](void*) |
|
72 |
{
|
|
73 |
}
|
|
74 |
||
75 |
static void operator delete(void*, Root&) |
|
76 |
{
|
|
77 |
}
|
|
78 |
||
79 |
static void operator delete[](void*, Root&) |
|
80 |
{
|
|
81 |
}
|
|
82 |
||
2318.6.43
by Olaf van der Spek
Refactor |
83 |
static void operator delete(void*, Root*) |
2318.6.79
by Olaf van der Spek
Refactor |
84 |
{
|
85 |
}
|
|
86 |
||
2318.6.43
by Olaf van der Spek
Refactor |
87 |
static void operator delete[](void*, Root*) |
2318.6.79
by Olaf van der Spek
Refactor |
88 |
{
|
89 |
}
|
|
520.8.6
by Monty Taylor
Removed handler from common_includes. |
90 |
};
|
91 |
||
1253.1.4
by Monty Taylor
Moved sql_alloc into memory. |
92 |
}
|
93 |
}
|