summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-06-16 20:24:35 +0300
committerunknown <heikki@hundin.mysql.fi>2004-06-16 20:24:35 +0300
commitfce76a7644e917acbf835f728c8b452a6cf772da (patch)
tree73644cd0f7383c080454054f068a9bc8aa618cc3 /innobase
parenta09ecb2504de0f9d74521039c86e4e4412d0dfa7 (diff)
downloadmariadb-git-fce76a7644e917acbf835f728c8b452a6cf772da.tar.gz
mem0mem.ic, mem0mem.h:
Remove broken mem_realloc(); a patch to remove its uses in pars0lex.l and fil0fil.c will soon follow innobase/include/mem0mem.h: Remove broken mem_realloc(); a patch to remove its uses in pars0lex.l and fil0fil.c will soon follow innobase/include/mem0mem.ic: Remove broken mem_realloc(); a patch to remove its uses in pars0lex.l and fil0fil.c will soon follow
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/mem0mem.h12
-rw-r--r--innobase/include/mem0mem.ic29
2 files changed, 0 insertions, 41 deletions
diff --git a/innobase/include/mem0mem.h b/innobase/include/mem0mem.h
index 89e2a337c99..2dc5a111173 100644
--- a/innobase/include/mem0mem.h
+++ b/innobase/include/mem0mem.h
@@ -260,18 +260,6 @@ mem_free_func(
char* file_name, /* in: file name where created */
ulint line /* in: line where created */
);
-/*******************************************************************
-Implements realloc. */
-UNIV_INLINE
-void*
-mem_realloc(
-/*========*/
- /* out, own: free storage, NULL if did not succeed */
- void* buf, /* in: pointer to an old buffer */
- ulint n, /* in: desired number of bytes */
- char* file_name,/* in: file name where called */
- ulint line); /* in: line where called */
-
/**************************************************************************
Duplicates a NUL-terminated string. */
UNIV_INLINE
diff --git a/innobase/include/mem0mem.ic b/innobase/include/mem0mem.ic
index a51de5a5cf0..7ae19d0f31c 100644
--- a/innobase/include/mem0mem.ic
+++ b/innobase/include/mem0mem.ic
@@ -563,35 +563,6 @@ mem_heap_get_size(
return(size);
}
-/*******************************************************************
-Implements realloc. */
-UNIV_INLINE
-void*
-mem_realloc(
-/*========*/
- /* out, own: free storage, NULL if did not succeed */
- void* buf, /* in: pointer to an old buffer */
- ulint n, /* in: desired number of bytes */
- char* file_name,/* in: file name where called */
- ulint line) /* in: line where called */
-{
- mem_heap_t* heap = (mem_heap_t*)((byte*)buf
- - MEM_BLOCK_HEADER_SIZE - MEM_FIELD_HEADER_SIZE);
- ulint size;
- ut_a(heap->magic_n == MEM_BLOCK_MAGIC_N);
- size = mem_block_get_len(heap);
- ut_a(size > MEM_BLOCK_HEADER_SIZE + MEM_FIELD_HEADER_SIZE);
- size -= MEM_BLOCK_HEADER_SIZE + MEM_FIELD_HEADER_SIZE;
-
- if (n > size) {
- void* newbuf = memcpy(mem_alloc_func(n, file_name, line),
- buf, size);
- mem_free(buf);
- buf = newbuf;
- }
- return(buf);
-}
-
/**************************************************************************
Duplicates a NUL-terminated string. */
UNIV_INLINE