diff options
Diffstat (limited to 'storage/innobase/include/ut0mem.ic')
-rw-r--r-- | storage/innobase/include/ut0mem.ic | 74 |
1 files changed, 1 insertions, 73 deletions
diff --git a/storage/innobase/include/ut0mem.ic b/storage/innobase/include/ut0mem.ic index 8c8788a38aa..cc95a03642e 100644 --- a/storage/innobase/include/ut0mem.ic +++ b/storage/innobase/include/ut0mem.ic @@ -1,7 +1,7 @@ /***************************************************************************** Copyright (c) 1994, 2014, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2017, MariaDB Corporation. +Copyright (c) 2017, 2019, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -27,78 +27,6 @@ Created 5/30/1994 Heikki Tuuri #include "ut0byte.h" #include "mach0data.h" -/** Wrapper for memcpy(3). Copy memory area when the source and -target are not overlapping. -@param[in,out] dest copy to -@param[in] src copy from -@param[in] n number of bytes to copy -@return dest */ -UNIV_INLINE -void* -ut_memcpy(void* dest, const void* src, ulint n) -{ - return(memcpy(dest, src, n)); -} - -/** Wrapper for memmove(3). Copy memory area when the source and -target are overlapping. -@param[in,out] dest Move to -@param[in] src Move from -@param[in] n number of bytes to move -@return dest */ -UNIV_INLINE -void* -ut_memmove(void* dest, const void* src, ulint n) -{ - return(memmove(dest, src, n)); -} - -/** Wrapper for memcmp(3). Compare memory areas. -@param[in] str1 first memory block to compare -@param[in] str2 second memory block to compare -@param[in] n number of bytes to compare -@return negative, 0, or positive if str1 is smaller, equal, - or greater than str2, respectively. */ -UNIV_INLINE -int -ut_memcmp(const void* str1, const void* str2, ulint n) -{ - return(memcmp(str1, str2, n)); -} - -/** Wrapper for strcpy(3). Copy a NUL-terminated string. -@param[in,out] dest Destination to copy to -@param[in] src Source to copy from -@return dest */ -UNIV_INLINE -char* -ut_strcpy(char* dest, const char* src) -{ - return(strcpy(dest, src)); -} - -/** Wrapper for strlen(3). Determine the length of a NUL-terminated string. -@param[in] str string -@return length of the string in bytes, excluding the terminating NUL */ -UNIV_INLINE -ulint -ut_strlen(const char* str) -{ - return(strlen(str)); -} - -/** Wrapper for strcmp(3). Compare NUL-terminated strings. -@param[in] str1 first string to compare -@param[in] str2 second string to compare -@return negative, 0, or positive if str1 is smaller, equal, - or greater than str2, respectively. */ -UNIV_INLINE -int -ut_strcmp(const char* str1, const char* str2) -{ - return(strcmp(str1, str2)); -} - /**********************************************************************//** Converts a raw binary data to a NUL-terminated hex string. The output is truncated if there is not enough space in "hex", make sure "hex_size" is at |