- Implement DS_DataStruct_Value_Add_I, DS_DataStruct_Flush_I() & DS_Free,
- dsbench testings...
This commit is contained in:
@@ -180,6 +180,7 @@ typedef struct DST_RootDesc
|
||||
|
||||
# define DS_DataStruct_Open DS_DataStruct_Open_I
|
||||
# define DS_DataStruct_Close DS_DataStruct_Close_I
|
||||
# define DS_DataStruct_Flush DS_DataStruct_Flush_I
|
||||
# define DS_DataStruct_Reorg DS_DataStruct_Reorg_I
|
||||
# define DS_DataStruct_Traverse DS_DataStruct_Traverse_I
|
||||
# define DS_DataStruct_Convert DS_DataStruct_Convert_I
|
||||
@@ -189,6 +190,8 @@ typedef struct DST_RootDesc
|
||||
# define DS_DataStruct_Check DS_DataStruct_Check_I
|
||||
# define DS_DataStruct_Lock DS_DataStruct_Lock_I
|
||||
# define DS_DataStruct_Unlock DS_DataStruct_Unlock_I
|
||||
# define DS_DataStruct_Value_Add DS_DataStruct_Value_Add_I
|
||||
# define DS_DataStruct_Value_Remove DS_DataStruct_Value_Remove_I
|
||||
|
||||
# define DS_Index_Open DS_Index_Open_I
|
||||
# define DS_Index_Close DS_Index_Close_I
|
||||
@@ -204,8 +207,6 @@ typedef struct DST_RootDesc
|
||||
# define DS_Node_Find DS_Node_Find_I
|
||||
|
||||
# define DS_Value_Alloc DS_Value_Alloc_I
|
||||
# define DS_Value_Add DS_Value_Add_I
|
||||
# define DS_Value_Remove DS_Value_Remove_I
|
||||
# define DS_Value_Free DS_Value_Free_I
|
||||
|
||||
# define DS_Alloc DS_Alloc_I
|
||||
@@ -224,6 +225,7 @@ typedef struct DST_RootDesc
|
||||
|
||||
# define DS_DataStruct_Open DS_DataStruct_Open_L
|
||||
# define DS_DataStruct_Close DS_DataStruct_Close_L
|
||||
# define DS_DataStruct_Flush DS_DataStruct_Flush_L
|
||||
# define DS_DataStruct_Reorg DS_DataStruct_Reorg_L
|
||||
# define DS_DataStruct_Traverse DS_DataStruct_Traverse_L
|
||||
# define DS_DataStruct_Convert DS_DataStruct_Convert_L
|
||||
@@ -233,6 +235,8 @@ typedef struct DST_RootDesc
|
||||
# define DS_DataStruct_Check DS_DataStruct_Check_L
|
||||
# define DS_DataStruct_Lock DS_DataStruct_Lock_L
|
||||
# define DS_DataStruct_Unlock DS_DataStruct_Unlock_L
|
||||
# define DS_DataStruct_Value_Add DS_DataStruct_Value_Add_L
|
||||
# define DS_DataStruct_Value_Remove DS_DataStruct_Value_Remove_L
|
||||
|
||||
# define DS_Index_Open DS_Index_Open_L
|
||||
# define DS_Index_Close DS_Index_Close_L
|
||||
@@ -248,8 +252,6 @@ typedef struct DST_RootDesc
|
||||
# define DS_Node_Find DS_Node_Find_L
|
||||
|
||||
# define DS_Value_Alloc DS_Value_Alloc_L
|
||||
# define DS_Value_Add DS_Value_Add_L
|
||||
# define DS_Value_Remove DS_Value_Remove_L
|
||||
# define DS_Value_Free DS_Value_Free_L
|
||||
|
||||
# define DS_Alloc DS_Alloc_L
|
||||
@@ -268,6 +270,7 @@ typedef struct DST_RootDesc
|
||||
|
||||
# define DS_DataStruct_Open DS_DataStruct_Open_CL
|
||||
# define DS_DataStruct_Close DS_DataStruct_Close_CL
|
||||
# define DS_DataStruct_Flush DS_DataStruct_Flush_CL
|
||||
# define DS_DataStruct_Reorg DS_DataStruct_Reorg_CL
|
||||
# define DS_DataStruct_Traverse DS_DataStruct_Traverse_CL
|
||||
# define DS_DataStruct_Convert DS_DataStruct_Convert_CL
|
||||
@@ -277,6 +280,8 @@ typedef struct DST_RootDesc
|
||||
# define DS_DataStruct_Check DS_DataStruct_Check_CL
|
||||
# define DS_DataStruct_Lock DS_DataStruct_Lock_CL
|
||||
# define DS_DataStruct_Unlock DS_DataStruct_Unlock_CL
|
||||
# define DS_DataStruct_Value_Add DS_DataStruct_Value_Add_CL
|
||||
# define DS_DataStruct_Value_Remove DS_DataStruct_Value_Remove_CL
|
||||
|
||||
# define DS_Index_Open DS_Index_Open_CL
|
||||
# define DS_Index_Close DS_Index_Close_CL
|
||||
@@ -292,8 +297,6 @@ typedef struct DST_RootDesc
|
||||
# define DS_Node_Find DS_Node_Find_CL
|
||||
|
||||
# define DS_Value_Alloc DS_Value_Alloc_CL
|
||||
# define DS_Value_Add DS_Value_Add_CL
|
||||
# define DS_Value_Remove DS_Value_Remove_CL
|
||||
# define DS_Value_Free DS_Value_Free_CL
|
||||
|
||||
# define DS_Alloc DS_Alloc_CL
|
||||
@@ -415,6 +418,18 @@ DSD_API DST_Status DS_DataStruct_Close_CL( NDT_Root *Root_Ptr, DST_Flags Clo
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Destroy all data of a data structure */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (I) Root_Ptr: Data structure pointer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
DSD_API NDT_Status DS_DataStruct_Flush_I( NDT_Root *Root_Ptr);
|
||||
DSD_API NDT_Status DS_DataStruct_Flush_L( NDT_Root *Root_Ptr);
|
||||
DSD_API NDT_Status DS_DataStruct_Flush_CL( NDT_Root *Root_Ptr);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Print data structure information */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
@@ -431,6 +446,19 @@ DSD_API DST_Status DS_DataStruct_Info_Print_CL( FILE *Out, NDT_Root *Root_Ptr,
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Add a new value to a data structure */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (I) Root_Ptr: Data structure pointer */
|
||||
/* (I) Value_Ptr: Value pointer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
DSD_API DST_Status DS_DataStruct_Value_Add_I( NDT_Root *Root_Ptr, void *Value_Ptr);
|
||||
DSD_API DST_Status DS_DataStruct_Value_Add_L( NDT_Root *Root_Ptr, void *Value_Ptr);
|
||||
DSD_API DST_Status DS_DataStruct_Value_Add_CL( NDT_Root *Root_Ptr, void *Value_Ptr);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Réorganisation d'une structure de données : */
|
||||
/* - ordonnancement d'une liste non ordonnée */
|
||||
@@ -665,19 +693,6 @@ DSD_API DST_Status DS_Value_Alloc_CL( void **Value_Ptr_Ptr, NDT_Root *Root_Pt
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Ajout d'une valeur à une structure de données */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (I) Root : pointeur sur la racine de la structure de données */
|
||||
/* (I) Value : pointeur sur la valeur à ajouter */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
DSD_API DST_Status DS_Value_Add_I( NDT_Root *Root_Ptr, void *Value_Ptr);
|
||||
DSD_API DST_Status DS_Value_Add_L( NDT_Root *Root_Ptr, void *Value_Ptr);
|
||||
DSD_API DST_Status DS_Value_Add_CL( NDT_Root *Root_Ptr, void *Value_Ptr);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Suppression du premier noeud correspondant à une valeur donnée */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
@@ -725,11 +740,11 @@ DSD_API DST_Status DS_Alloc_CL( void **Ptr_Ptr, NDT_Root *Root_Ptr, size_t S
|
||||
/* (I) Root : pointeur sur la racine de la structure de données */
|
||||
/* (I) Ptr : pointeur sur la zone à désallouer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/*
|
||||
DSD_API DST_Status DS_Free_I( NDT_Root * Root, void * Ptr);
|
||||
DSD_API DST_Status DS_Free_L( NDT_Root * Root, void * Ptr);
|
||||
DSD_API DST_Status DS_Free_CL( NDT_Root * Root, void * Ptr);
|
||||
*/
|
||||
|
||||
DSD_API DST_Status DS_Free_I( NDT_Root *Root_Ptr, void *Ptr);
|
||||
DSD_API DST_Status DS_Free_L( NDT_Root *Root_Ptr, void *Ptr);
|
||||
DSD_API DST_Status DS_Free_CL( NDT_Root *Root_Ptr, void *Ptr);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user