summaryrefslogtreecommitdiff
path: root/innobase/include/ut0mem.h
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2001-09-20 21:04:48 +0300
committerunknown <heikki@donna.mysql.fi>2001-09-20 21:04:48 +0300
commit31fd0c63e04c416af61036d2e1f4e5e6f9ea877d (patch)
tree93ddcb5cf7eb5dcc4666dd6f0700e66f31fff260 /innobase/include/ut0mem.h
parentc66208cfbf2726a2c9fe6eed9f4d71e2fff5dfbd (diff)
downloadmariadb-git-31fd0c63e04c416af61036d2e1f4e5e6f9ea877d.tar.gz
mem0mem.ic Changes to eliminate unnecessary Purify warnings
ut0mem.h Changes to eliminate unnecessary Purify warnings ut0mem.ic Changes to eliminate unnecessary Purify warnings srv0start.c Changes to eliminate unnecessary Purify warnings mem0pool.c Changes to eliminate unnecessary Purify warnings ut0mem.c Changes to eliminate unnecessary Purify warnings innobase/ut/ut0mem.c: Changes to eliminate unnecessary Purify warnings innobase/mem/mem0pool.c: Changes to eliminate unnecessary Purify warnings innobase/srv/srv0start.c: Changes to eliminate unnecessary Purify warnings innobase/include/ut0mem.h: Changes to eliminate unnecessary Purify warnings innobase/include/ut0mem.ic: Changes to eliminate unnecessary Purify warnings innobase/include/mem0mem.ic: Changes to eliminate unnecessary Purify warnings
Diffstat (limited to 'innobase/include/ut0mem.h')
-rw-r--r--innobase/include/ut0mem.h33
1 files changed, 30 insertions, 3 deletions
diff --git a/innobase/include/ut0mem.h b/innobase/include/ut0mem.h
index fa46514fe16..8e5a4fda0d3 100644
--- a/innobase/include/ut0mem.h
+++ b/innobase/include/ut0mem.h
@@ -26,12 +26,39 @@ int
ut_memcmp(void* str1, void* str2, ulint n);
+/**************************************************************************
+Allocates memory. Sets it also to zero if UNIV_SET_MEM_TO_ZERO is
+defined and set_to_zero is TRUE. */
+
void*
-ut_malloc(ulint n);
+ut_malloc_low(
+/*==========*/
+ /* out, own: allocated memory */
+ ulint n, /* in: number of bytes to allocate */
+ ibool set_to_zero); /* in: TRUE if allocated memory should be set
+ to zero if UNIV_SET_MEM_TO_ZERO is defined */
+/**************************************************************************
+Allocates memory. Sets it also to zero if UNIV_SET_MEM_TO_ZERO is
+defined. */
+
+void*
+ut_malloc(
+/*======*/
+ /* out, own: allocated memory */
+ ulint n); /* in: number of bytes to allocate */
+/**************************************************************************
+Frees a memory bloock allocated with ut_malloc. */
+
+void
+ut_free(
+/*====*/
+ void* ptr); /* in, own: memory block */
+/**************************************************************************
+Frees all allocated memory not freed yet. */
-UNIV_INLINE
void
-ut_free(void* ptr);
+ut_free_all_mem(void);
+/*=================*/
UNIV_INLINE
char*