~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/memory/sql_alloc.h

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
 
 
21
 
20
22
#ifndef DRIZZLED_MEMORY_SQL_ALLOC_H
21
23
#define DRIZZLED_MEMORY_SQL_ALLOC_H
22
24
 
23
25
#include <unistd.h>
24
26
#include "drizzled/memory/root.h"
25
27
 
 
28
#include "drizzled/visibility.h"
 
29
 
26
30
namespace drizzled
27
31
{
28
32
class Session;
37
41
char *sql_strmake(const char *str, size_t len);
38
42
void *sql_memdup(const void * ptr, size_t size);
39
43
 
40
 
class SqlAlloc
 
44
class DRIZZLED_API SqlAlloc
41
45
{
42
46
public:
43
47
  static void *operator new(size_t size);