Replace stderr by File_Out in ND_DataStruct_Check() and ND_Index_Check() functions,

Replace out dated _LIBVER by _LIBVER_SUPPORT.
This commit is contained in:
agibert 2002-02-27 16:14:22 +00:00
parent b649d3b5ea
commit 417673d1cd

View File

@ -1,9 +1,9 @@
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/
/* $RCSfile: ndbench.c,v $ */ /* $RCSfile: ndbench.c,v $ */
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/
/* $Revision: 2.1 $ */ /* $Revision: 2.2 $ */
/* $Name: $ */ /* $Name: $ */
/* $Date: 2002/02/25 23:35:51 $ */ /* $Date: 2002/02/27 16:14:22 $ */
/* $Author: agibert $ */ /* $Author: agibert $ */
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/
@ -44,7 +44,7 @@
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/
#ifdef _LIBVER #ifdef _LIBVER
VER_INFO_EXPORT( ndbench, "$Revision: 2.1 $", "$Name: $", __FILE__, "$Author: agibert $") VER_INFO_EXPORT( ndbench, "$Revision: 2.2 $", "$Name: $", __FILE__, "$Author: agibert $")
#endif #endif
#define ND_MODE 1 #define ND_MODE 1
@ -241,7 +241,7 @@ NDT_Status Module_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Nod
Command_Name = "NDD_CMD_MANAGER_VERSION"; Command_Name = "NDD_CMD_MANAGER_VERSION";
*Version_Name_Ptr = "$Revision: 2.1 $ $Name: $ $Date: 2002/02/25 23:35:51 $ $Author: agibert $"; *Version_Name_Ptr = "$Revision: 2.2 $ $Name: $ $Date: 2002/02/27 16:14:22 $ $Author: agibert $";
return( NDS_OK); return( NDS_OK);
} }
@ -744,7 +744,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
Nb_Corrected = Nb_Detected = 0; Nb_Corrected = Nb_Detected = 0;
t_start( t_exec); t_start( t_exec);
ND_DataStruct_Check( *DS_Ptr_Ptr, &Nb_Detected, &Nb_Corrected, stderr); ND_DataStruct_Check( *DS_Ptr_Ptr, &Nb_Detected, &Nb_Corrected, File_Output);
t_stop( t_exec); t_stop( t_exec);
Command_Exec_End_Print( File_Output, Choice, t_exec, 1); Command_Exec_End_Print( File_Output, Choice, t_exec, 1);
@ -1279,7 +1279,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
fflush( File_Output); fflush( File_Output);
Nb_Corrected = Nb_Detected = 0; Nb_Corrected = Nb_Detected = 0;
ND_Index_Check( *DS_Ptr_Ptr, (NDT_Index_Id)i, &Nb_Detected, &Nb_Corrected, stderr); ND_Index_Check( *DS_Ptr_Ptr, (NDT_Index_Id)i, &Nb_Detected, &Nb_Corrected, File_Output);
} }
t_stop (t_exec); t_stop (t_exec);
@ -1390,13 +1390,13 @@ int main( int argc, char ** argv)
{ {
if( argc >= 3 && !strcmp( argv[2], "-v")) if( argc >= 3 && !strcmp( argv[2], "-v"))
{ {
#ifdef _LIBVER #ifdef _LIBVER_SUPPORT
return( VER_Object_Print( stdout, VERD_VERBOSE)); return( VER_Object_Print( stdout, VERD_VERBOSE));
#endif #endif
} }
else else
{ {
#ifdef _LIBVER #ifdef _LIBVER_SUPPORT
return( VER_Object_Print( stdout, VERD_MINIMAL)); return( VER_Object_Print( stdout, VERD_MINIMAL));
#endif #endif
} }