~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/ut0mem.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
Created 5/30/1994 Heikki Tuuri
24
24
************************************************************************/
25
25
 
 
26
#pragma once
26
27
#ifndef ut0mem_h
27
28
#define ut0mem_h
28
29
 
96
97
Allocates memory. Sets it also to zero if UNIV_SET_MEM_TO_ZERO is
97
98
defined.
98
99
@return own: allocated memory */
 
100
#ifdef __cplusplus
 
101
extern "C"
 
102
#endif
99
103
UNIV_INTERN
100
104
void*
101
105
ut_malloc(
116
120
/**********************************************************************//**
117
121
Frees a memory block allocated with ut_malloc. Freeing a NULL pointer is
118
122
a nop. */
 
123
#ifdef __cplusplus
 
124
extern "C"
 
125
#endif
119
126
UNIV_INTERN
120
127
void
121
128
ut_free(
147
154
       original  block  is  left  untouched  - it is not freed or
148
155
       moved.
149
156
@return own: pointer to new mem block or NULL */
 
157
#ifdef __cplusplus
 
158
extern "C"
 
159
#endif
150
160
UNIV_INTERN
151
161
void*
152
162
ut_realloc(