- Switch to GPL & LGPL V3,
- Fix header files.
This commit is contained in:
127
util/ndbench.c
127
util/ndbench.c
@@ -1,37 +1,30 @@
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* $RCSfile: ndbench.c,v $ */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* $Revision: 2.10 $ */
|
||||
/* $Name: $ */
|
||||
/* $Date: 2010/06/06 21:27:12 $ */
|
||||
/* $Author: agibert $ */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* ndbench.c */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* This file is part of LibNode */
|
||||
/* */
|
||||
/* LibNode is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public Licence as published by */
|
||||
/* the Free Software Foundation; either version 2 of the License, or */
|
||||
/* (at your option) any later version. */
|
||||
/* */
|
||||
/* LibNode is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU Lesser General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with LibNode; if not, write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* This file is part of LibLog. */
|
||||
/* */
|
||||
/* LibLog 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 Foundation, either version 3 of the License, or */
|
||||
/* (at your option) any later version. */
|
||||
/* */
|
||||
/* LibLog is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with Drummer. If not, see <https://www.gnu.org/licenses/>. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Includes */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* Includes */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -54,12 +47,12 @@
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* Defines */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Defines */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef _LIBVER_SUPPORT
|
||||
VER_INFO_EXPORT( ndbench, "$Revision: 2.10 $", "$Name: $", __FILE__, "$Author: agibert $");
|
||||
//VER_INFO_EXPORT( ndbench, "$Revision: 2.10 $", "$Name: $", __FILE__, "$Author: agibert $");
|
||||
# define USAGE "Usage : %s [ --help | --version [-v] | --batch_run <batch_file_name>]\n"
|
||||
#else
|
||||
# define USAGE "Usage : %s [ --help | --batch_run <batch_file_name>]\n"
|
||||
@@ -121,9 +114,9 @@ VER_INFO_EXPORT( ndbench, "$Revision: 2.10 $", "$Name: $", __FILE__, "$Author:
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* Types */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Types */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
typedef struct Command
|
||||
{
|
||||
@@ -196,9 +189,9 @@ NDT_Index_Type idx_type_balanced_tree = NDD_INDEX_STATUS_OPENED | NDD_INDEX_TYP
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* Prototype */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Prototype */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
NDT_Status Module_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list *);
|
||||
|
||||
@@ -214,9 +207,9 @@ void Batch_Run( NDT_Root **, FILE *, FILE *, short);
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* Global Variable */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Global Variable */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
Command Command_Tab[] =
|
||||
{
|
||||
@@ -254,9 +247,9 @@ Command Command_Tab[] =
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Module_Manager */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
NDT_Status Module_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Node *Node_Ptr, NDT_Command Command, va_list *Args_Ptr)
|
||||
{
|
||||
@@ -553,9 +546,9 @@ NDT_Status Module_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Nod
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Menu_Print */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
void Menu_Print( FILE *File_Output, NDT_Root *DS_Ptr)
|
||||
{
|
||||
@@ -585,9 +578,9 @@ void Menu_Print( FILE *File_Output, NDT_Root *DS_Ptr)
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Command_Get */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
void Command_Get( int *choice, char **arg1, char **arg2, FILE *File_Output, FILE *File_Input, short Interactive_Flag)
|
||||
{
|
||||
@@ -669,9 +662,9 @@ void Command_Get( int *choice, char **arg1, char **arg2, FILE *File_Output,
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Command_Exec_Begin_Print */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
void Command_Exec_Begin_Print( FILE *File_Output, int Choice)
|
||||
{
|
||||
@@ -683,9 +676,9 @@ void Command_Exec_Begin_Print( FILE *File_Output, int Choice)
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Command_Exec_En_Print */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
void Command_Exec_End_Print( FILE *File_Output, int Choice, cpt T_Exec, int nb)
|
||||
{
|
||||
@@ -703,9 +696,9 @@ void Command_Exec_End_Print( FILE *File_Output, int Choice, cpt T_Exec, int
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Command_Index_Range_Get */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
void Command_Index_Range_Get( FILE *File_Output, int *Low, int *High, char *Arg, FILE *File_Input, int Choice, char *Obj_Name)
|
||||
{
|
||||
@@ -747,9 +740,9 @@ void Command_Index_Range_Get( FILE *File_Output, int *Low, int *High, char
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Command_Exec */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, char *Arg1, char *Arg2, FILE *File_Input)
|
||||
{
|
||||
@@ -1548,9 +1541,9 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Batch_Run */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
void Batch_Run( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, FILE *File_Input, short Interactive_Flag)
|
||||
{
|
||||
@@ -1583,7 +1576,7 @@ void Batch_Run( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, FILE *File_Input,
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* main */
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
|
||||
int main( int argc, char **argv)
|
||||
|
||||
Reference in New Issue
Block a user