mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
- Added H5MMprivate.h #includes where needed
- Added casts to quiet H5MM_memcpy warnings - Removed char * casts from HDmemcpy
This commit is contained in:
parent
a98747c0f9
commit
5c80d3d912
@ -35,6 +35,7 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Apkg.h" /* Attributes */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5SMprivate.h" /* Shared object header messages */
|
||||
|
||||
|
||||
|
@ -107,6 +107,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Pprivate.h" /* Property lists */
|
||||
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5B2pkg.h" /* v2 B-trees */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vectors and arrays */
|
||||
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Bpkg.h" /* B-link trees */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MFprivate.h" /* File space management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Oprivate.h" /* Object headers */
|
||||
#include "H5Sprivate.h" /* Dataspaces */
|
||||
#include "H5VMprivate.h" /* Vector and array functions */
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "H5Dpkg.h" /* Datasets */
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5MFprivate.h" /* File space management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vector and array functions */
|
||||
|
||||
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5FOprivate.h" /* File objects */
|
||||
#include "H5Oprivate.h" /* Object headers */
|
||||
#include "H5Pprivate.h" /* Property lists */
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "H5EAprivate.h" /* Extensible arrays */
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5MFprivate.h" /* File space management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vector functions */
|
||||
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vector and array functions */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5EApkg.h" /* Extensible Arrays */
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vector functions */
|
||||
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5EApkg.h" /* Extensible Arrays */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vectors and arrays */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5EApkg.h" /* Extensible Arrays */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vectors and arrays */
|
||||
|
||||
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5EApkg.h" /* Extensible Arrays */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FApkg.h" /* Fixed Arrays */
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vector functions */
|
||||
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FApkg.h" /* Fixed Arrays */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vectors and arrays */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FApkg.h" /* Fixed Arrays */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FApkg.h" /* Fixed Arrays */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FSpkg.h" /* File free space */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "H5Fprivate.h" /* File */
|
||||
#include "H5FSpkg.h" /* File free space */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vectors and arrays */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5Fpkg.h" /* File access */
|
||||
#include "H5FDprivate.h" /* File drivers */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vectors and arrays */
|
||||
|
||||
|
||||
|
@ -28,6 +28,7 @@ typedef struct H5F_t H5F_t;
|
||||
#include "H5FDpublic.h" /* File drivers */
|
||||
|
||||
/* Private headers needed by this file */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
#include "H5Pprivate.h" /* Property lists */
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5Gpkg.h" /* Groups */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5Gpkg.h" /* Groups */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5Gpkg.h" /* Groups */
|
||||
#include "H5HLprivate.h" /* Local Heaps */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -42,6 +42,8 @@
|
||||
#include "H5FOprivate.h" /* File objects */
|
||||
#include "H5HFpkg.h" /* Fractal heaps */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
/* Local Macros */
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5HFpkg.h" /* Fractal heaps */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5VMprivate.h" /* Vectors and arrays */
|
||||
|
||||
/****************/
|
||||
|
@ -32,6 +32,8 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5HFpkg.h" /* Fractal heaps */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
/* Local Macros */
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5HFpkg.h" /* Fractal heaps */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5HLpkg.h" /* Local Heaps */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
||||
|
||||
|
@ -568,7 +568,8 @@ H5MM_xfree(void *mem)
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5MM_memcpy
|
||||
*
|
||||
* Purpose: Like memcpy(3) but with a check for buffer overlap.
|
||||
* Purpose: Like memcpy(3) but with sanity checks on the parameters,
|
||||
* particularly buffer overlap.
|
||||
*
|
||||
* Return: Success: pointer to dest
|
||||
* Failure: NULL
|
||||
@ -588,7 +589,8 @@ H5MM_memcpy(void *dest, const void *src, size_t n)
|
||||
|
||||
HDassert(dest);
|
||||
HDassert(src);
|
||||
HDassert(dest >= src + n || src >= dest + n);
|
||||
HDassert(n > 0);
|
||||
HDassert((char *)dest >= (const char *)src + n || (const char *)src >= (char *)dest + n);
|
||||
|
||||
ret = HDmemcpy(dest, src, n);
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FLprivate.h" /* Free lists */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Opkg.h" /* Object headers */
|
||||
|
||||
/****************/
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FLprivate.h" /* Free lists */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Opkg.h" /* Object headers */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
||||
|
@ -38,9 +38,7 @@
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5Lprivate.h" /* Links */
|
||||
#include "H5MFprivate.h" /* File memory management */
|
||||
#ifdef H5O_ENABLE_BOGUS
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#endif /* H5O_ENABLE_BOGUS */
|
||||
#include "H5Opkg.h" /* Object headers */
|
||||
#include "H5VLprivate.h" /* Virtual Object Layer */
|
||||
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "H5Fprivate.h" /* File access */
|
||||
#include "H5Gprivate.h" /* Groups */
|
||||
#include "H5HFprivate.h" /* Fractal heap */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Opkg.h" /* Object headers */
|
||||
#include "H5SMprivate.h" /* Shared object header messages */
|
||||
#include "H5WBprivate.h" /* Wrapped Buffers */
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "H5Fpkg.h" /* Files */
|
||||
#include "H5FDprivate.h" /* File drivers */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5PBpkg.h" /* File access */
|
||||
#include "H5SLprivate.h" /* Skip List */
|
||||
|
||||
|
@ -37,8 +37,8 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5Fprivate.h" /* Files */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Ppkg.h" /* Property lists */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
|
||||
/****************/
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "H5Fprivate.h" /* Files */
|
||||
#include "H5FLprivate.h" /* Free lists */
|
||||
#include "H5Iprivate.h" /* IDs */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Oprivate.h" /* Object headers */
|
||||
#include "H5Spkg.h" /* Dataspaces */
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
/***********/
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Opkg.h" /* Object Headers */
|
||||
#include "H5SMpkg.h" /* Shared object header messages */
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
/***********/
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Opkg.h" /* Object Headers */
|
||||
#include "H5SMpkg.h" /* Shared object header messages */
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5FLprivate.h" /* Free Lists */
|
||||
#include "H5Iprivate.h" /* ID Functions */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Spkg.h" /* Dataspace functions */
|
||||
#include "H5VMprivate.h" /* Vector functions */
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "H5private.h"
|
||||
#include "H5Eprivate.h"
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
#include "H5Oprivate.h"
|
||||
#include "H5VMprivate.h"
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
/* Private headers needed by this file */
|
||||
#include "H5private.h" /* Generic Functions */
|
||||
#include "H5Eprivate.h" /* Error handling */
|
||||
#include "H5MMprivate.h" /* Memory management */
|
||||
|
||||
/* Vector-Vector sequence operation callback */
|
||||
typedef herr_t (*H5VM_opvv_func_t)(hsize_t dst_off, hsize_t src_off,
|
||||
|
@ -1104,12 +1104,8 @@ typedef off_t h5_stat_size_t;
|
||||
#ifndef HDmemcmp
|
||||
#define HDmemcmp(X,Y,Z) memcmp(X,Y,Z)
|
||||
#endif /* HDmemcmp */
|
||||
/*
|
||||
* The (char*) casts are required for the DEC when optimizations are turned
|
||||
* on and the source and/or destination are not aligned.
|
||||
*/
|
||||
#ifndef HDmemcpy
|
||||
#define HDmemcpy(X,Y,Z) memcpy((char*)(X),(const char*)(Y),Z)
|
||||
#define HDmemcpy(X,Y,Z) memcpy(X,Y,Z)
|
||||
#endif /* HDmemcpy */
|
||||
#ifndef HDmemmove
|
||||
#define HDmemmove(X,Y,Z) memmove((char*)(X),(const char*)(Y),Z)
|
||||
|
Loading…
x
Reference in New Issue
Block a user