- Rename ND_DataStruct_Alloc() & ND_DataStruct_Free() into ND_Alloc() & ND_Free(),
- Use ND_Alloc() & ND_Free() into ndbench.
This commit is contained in:
@@ -680,8 +680,6 @@ typedef int NDT_Recursive_Offset;
|
||||
# define ND_DataStruct_Traverse_V ND_DataStruct_Traverse_VI
|
||||
# define ND_DataStruct_Traverse ND_DataStruct_Traverse_I
|
||||
# define ND_DataStruct_Info_Print ND_DataStruct_Info_Print_I
|
||||
# define ND_DataStruct_Alloc ND_DataStruct_Alloc_I
|
||||
# define ND_DataStruct_Free ND_DataStruct_Free_I
|
||||
# define ND_DataStruct_Value_Add ND_DataStruct_Value_Add_I
|
||||
# define ND_DataStruct_Value_Remove ND_DataStruct_Value_Remove_I
|
||||
# define ND_DataStruct_Value_Print ND_DataStruct_Value_Print_I
|
||||
@@ -714,6 +712,8 @@ typedef int NDT_Recursive_Offset;
|
||||
|
||||
# define ND_Manager_Exec_V ND_Manager_Exec_VI
|
||||
# define ND_Manager_Exec ND_Manager_Exec_I
|
||||
# define ND_Alloc ND_Alloc_I
|
||||
# define ND_Free ND_Free_I
|
||||
# define ND_Allocator_Exec ND_Allocator_Exec_I
|
||||
# define ND_Deallocator_Exec ND_Deallocator_Exec_I
|
||||
|
||||
@@ -736,8 +736,6 @@ typedef int NDT_Recursive_Offset;
|
||||
# define ND_DataStruct_Traverse_V ND_DataStruct_Traverse_VC
|
||||
# define ND_DataStruct_Traverse ND_DataStruct_Traverse_C
|
||||
# define ND_DataStruct_Info_Print ND_DataStruct_Info_Print_C
|
||||
# define ND_DataStruct_Alloc ND_DataStruct_Alloc_C
|
||||
# define ND_DataStruct_Free ND_DataStruct_Free_C
|
||||
# define ND_DataStruct_Value_Add ND_DataStruct_Value_Add_C
|
||||
# define ND_DataStruct_Value_Remove ND_DataStruct_Value_Remove_C
|
||||
# define ND_DataStruct_Value_Print ND_DataStruct_Value_Print_C
|
||||
@@ -770,6 +768,8 @@ typedef int NDT_Recursive_Offset;
|
||||
|
||||
# define ND_Manager_Exec_V ND_Manager_Exec_VC
|
||||
# define ND_Manager_Exec ND_Manager_Exec_C
|
||||
# define ND_Alloc ND_Alloc_C
|
||||
# define ND_Free ND_Free_C
|
||||
# define ND_Allocator_Exec ND_Allocator_Exec_C
|
||||
# define ND_Deallocator_Exec ND_Deallocator_Exec_C
|
||||
|
||||
@@ -940,33 +940,6 @@ NDD_DLL_API NDT_Status ND_DataStruct_Info_Print_C( FILE *, NDT_Root *, NDT_Re
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Alloc memory unsing data structure allocator - Manager function */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (O) Memory_Ptr_Ptr: Memory pointer address */
|
||||
/* (I) Root_Ptr: Data structure pointer */
|
||||
/* (I) Size: Allocation size */
|
||||
/* (I) Data_Ptr: User pointer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
NDD_DLL_API NDT_Status ND_DataStruct_Alloc_I( void **, NDT_Root *, size_t, void *);
|
||||
NDD_DLL_API NDT_Status ND_DataStruct_Alloc_C( void **, NDT_Root *, size_t, void *);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Free memory unsing data structure allocator - Manager function */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (I) Memory_Ptr: Memory pointer */
|
||||
/* (I) Root_Ptr: Data structure pointer */
|
||||
/* (I) Data_Ptr: User pointer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
NDD_DLL_API NDT_Status ND_DataStruct_Free_I( void *, NDT_Root *, void *);
|
||||
NDD_DLL_API NDT_Status ND_DataStruct_Free_C( void *, NDT_Root *, void *);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Add a new value to a data structure */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
@@ -1326,6 +1299,33 @@ NDD_DLL_API NDT_Status ND_Manager_Exec_C( NDT_Root *, NDT_Index_Id, NDT_Node
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Alloc memory unsing data structure allocator - Manager function */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (O) Memory_Ptr_Ptr: Memory pointer address */
|
||||
/* (I) Root_Ptr: Data structure pointer */
|
||||
/* (I) Size: Allocation size */
|
||||
/* (I) Data_Ptr: User pointer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
NDD_DLL_API NDT_Status ND_Alloc_I( void **, NDT_Root *, size_t, void *);
|
||||
NDD_DLL_API NDT_Status ND_Alloc_C( void **, NDT_Root *, size_t, void *);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Free memory unsing data structure allocator - Manager function */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (I) Memory_Ptr: Memory pointer */
|
||||
/* (I) Root_Ptr: Data structure pointer */
|
||||
/* (I) Data_Ptr: User pointer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
NDD_DLL_API NDT_Status ND_Free_I( void *, NDT_Root *, void *);
|
||||
NDD_DLL_API NDT_Status ND_Free_C( void *, NDT_Root *, void *);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Execute an allocator function */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user