Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8e3051e6
Commit
8e3051e6
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: mem_heap_cat(): Unused, remove.
parent
2fcd99e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
34 deletions
+0
-34
include/mem0mem.h
include/mem0mem.h
+0
-13
mem/mem0mem.c
mem/mem0mem.c
+0
-21
No files found.
include/mem0mem.h
View file @
8e3051e6
...
...
@@ -312,19 +312,6 @@ mem_heap_dup(
const
void
*
data
,
/*!< in: data to be copied */
ulint
len
);
/*!< in: length of data, in bytes */
/**********************************************************************//**
Concatenate two memory blocks and return the result, using a memory heap.
@return own: the result */
UNIV_INTERN
void
*
mem_heap_cat
(
/*=========*/
mem_heap_t
*
heap
,
/*!< in: memory heap where result is allocated */
const
void
*
b1
,
/*!< in: block 1 */
ulint
len1
,
/*!< in: length of b1, in bytes */
const
void
*
b2
,
/*!< in: block 2 */
ulint
len2
);
/*!< in: length of b2, in bytes */
/****************************************************************//**
A simple (s)printf replacement that dynamically allocates the space for the
formatted string from the given heap. This supports a very limited set of
...
...
mem/mem0mem.c
View file @
8e3051e6
...
...
@@ -125,27 +125,6 @@ mem_heap_dup(
return
(
memcpy
(
mem_heap_alloc
(
heap
,
len
),
data
,
len
));
}
/**********************************************************************//**
Concatenate two memory blocks and return the result, using a memory heap.
@return own: the result */
UNIV_INTERN
void
*
mem_heap_cat
(
/*=========*/
mem_heap_t
*
heap
,
/*!< in: memory heap where result is allocated */
const
void
*
b1
,
/*!< in: block 1 */
ulint
len1
,
/*!< in: length of b1, in bytes */
const
void
*
b2
,
/*!< in: block 2 */
ulint
len2
)
/*!< in: length of b2, in bytes */
{
void
*
res
=
mem_heap_alloc
(
heap
,
len1
+
len2
);
memcpy
(
res
,
b1
,
len1
);
memcpy
((
char
*
)
res
+
len1
,
b2
,
len2
);
return
(
res
);
}
/**********************************************************************//**
Concatenate two strings and return the result, using a memory heap.
@return own: the result */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment