Remove unused 'csvdiff' application
This commit is contained in:
parent
d308944509
commit
6a9dd7f9d6
8 changed files with 4 additions and 4572 deletions
|
|
@ -1442,8 +1442,6 @@ if env['python3_package'] == 'y' or env['python_package'] == 'full':
|
|||
if env['python_package'] == 'minimal':
|
||||
SConscript('interfaces/python_minimal/SConscript')
|
||||
|
||||
SConscript('build/src/apps/SConscript')
|
||||
|
||||
if env['CC'] != 'cl':
|
||||
VariantDir('build/platform', 'platform/posix', duplicate=0)
|
||||
SConscript('build/platform/SConscript')
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@ from buildutils import *
|
|||
Import('env', 'build', 'install')
|
||||
localenv = env.Clone()
|
||||
|
||||
# Copy man pages
|
||||
if env['INSTALL_MANPAGES']:
|
||||
install('$inst_mandir', mglob(localenv, '#platform/posix/man', '*'))
|
||||
|
||||
### Generate customized scripts ###
|
||||
|
||||
# 'setup_cantera'
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
from buildutils import *
|
||||
|
||||
Import('env', 'build', 'install')
|
||||
localenv = env.Clone()
|
||||
localenv.Prepend(CPPPATH=['#include', '#src/apps'])
|
||||
|
||||
def buildProgram(name, src):
|
||||
prog = build(localenv.Program(target=pjoin('#build/bin', name),
|
||||
source=src,
|
||||
LIBS=env['cantera_libs']))
|
||||
install('$inst_bindir', prog)
|
||||
|
||||
if env['layout'] != 'debian':
|
||||
buildProgram('csvdiff', ['csvdiff.cpp', 'tok_input_util.cpp', 'mdp_allo.cpp'])
|
||||
|
||||
# Copy man pages
|
||||
if env['INSTALL_MANPAGES']:
|
||||
install('$inst_mandir', mglob(localenv, '#platform/posix/man', '*'))
|
||||
1150
src/apps/csvdiff.cpp
1150
src/apps/csvdiff.cpp
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,89 +0,0 @@
|
|||
#ifndef MDP_ALLO_H
|
||||
#define MDP_ALLO_H
|
||||
|
||||
#include <string.h>
|
||||
/*****************************************************************************/
|
||||
/*
|
||||
* If we have array_alloc() from another Sandia program, we will not use
|
||||
* the one from this mdp_array_alloc. Instead we will redefine the names
|
||||
*/
|
||||
|
||||
#ifdef HAVE_ARRAY_ALLOC
|
||||
# define mdp_array_alloc array_alloc
|
||||
# define mdp_safe_free safe_free
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These are a poor man's way of specifying whether a value should be
|
||||
* initialized. These are seldom used numbers whic
|
||||
* $Name: $
|
||||
*====================h can be used in place
|
||||
* of real ints and dbls to indicate that initialization shouldn't take
|
||||
* place.
|
||||
*/
|
||||
#define MDP_INT_NOINIT -68361
|
||||
#define MDP_DBL_NOINIT -1.241E11
|
||||
|
||||
|
||||
#ifndef _C16_NAME_DEF
|
||||
# define _C16_NAME_DEF
|
||||
typedef char C16_NAME[16]; /* Character array used for fortran names */
|
||||
typedef char C16_NAME_STR[17];
|
||||
#endif
|
||||
/*****************************************************************************/
|
||||
/*
|
||||
* Externals that should be set by the calling program.
|
||||
* These are only used for debugging purposes.
|
||||
*/
|
||||
#ifdef MDP_MPDEBUGIO
|
||||
extern int MDP_MP_Nprocs;
|
||||
extern int MDP_MP_myproc;
|
||||
#endif
|
||||
/*****************************************************************************/
|
||||
|
||||
#define mdp_alloc_struct(x, num) (x *) mdp_array_alloc(1, (num), sizeof(x))
|
||||
|
||||
|
||||
/* function declarations for dynamic array allocation */
|
||||
|
||||
extern double* mdp_array_alloc(int numdim, ...);
|
||||
extern void mdp_safe_free(void**);
|
||||
|
||||
extern int* mdp_alloc_int_1(int, const int);
|
||||
extern void mdp_safe_alloc_int_1(int**, int, const int);
|
||||
extern void mdp_realloc_int_1(int**, int, int,
|
||||
const int defval = MDP_INT_NOINIT);
|
||||
extern int** mdp_alloc_int_2(int, int, const int);
|
||||
|
||||
extern double* mdp_alloc_dbl_1(int, const double);
|
||||
extern void mdp_safe_alloc_dbl_1(double**, int, const double);
|
||||
extern void mdp_realloc_dbl_1(double**, int, int, const double);
|
||||
extern void mdp_realloc_dbl_2(double***, int, int, int, int,
|
||||
const double);
|
||||
|
||||
extern char* mdp_alloc_char_1(int, const char);
|
||||
extern void mdp_safe_alloc_char_1(char**, int, const char);
|
||||
extern char** mdp_alloc_VecFixedStrings(int, int);
|
||||
extern void mdp_safe_alloc_VecFixedStrings(char***, int, int);
|
||||
extern void mdp_realloc_VecFixedStrings(char***, int, int, int);
|
||||
|
||||
extern double** mdp_alloc_dbl_2(int, int, const double);
|
||||
extern void mdp_safe_alloc_dbl_2(double***, int, int,
|
||||
const double = MDP_DBL_NOINIT);
|
||||
|
||||
extern C16_NAME* mdp_alloc_C16_NAME_1(int, const int);
|
||||
extern void mdp_safe_alloc_C16_NAME_1(C16_NAME**, int, const int);
|
||||
|
||||
extern void** mdp_alloc_ptr_1(int);
|
||||
extern void mdp_safe_alloc_ptr_1(void***, int);
|
||||
extern void mdp_realloc_ptr_1(void***, int, int);
|
||||
extern char* mdp_copy_C16_NAME_to_string(const C16_NAME);
|
||||
extern char* mdp_copy_string(const char*);
|
||||
extern void mdp_safe_copy_string(char**, const char*);
|
||||
|
||||
extern void*** mdp_alloc_ptr_2(int, int);
|
||||
|
||||
/*****************************************************************************/
|
||||
#endif
|
||||
/*****************************************************************************/
|
||||
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,84 +0,0 @@
|
|||
#ifndef TOK_INPUT_UTIL_H
|
||||
#define TOK_INPUT_UTIL_H
|
||||
|
||||
#include "stdio.h"
|
||||
|
||||
#ifndef MAX_INPUT_STR_LN
|
||||
#define MAX_INPUT_STR_LN 16100
|
||||
#endif
|
||||
#ifndef MAX_TOKEN_STR_LN
|
||||
#define MAX_TOKEN_STR_LN 255
|
||||
#endif
|
||||
#ifndef MAXTOKENS
|
||||
#define MAXTOKENS 20
|
||||
#endif
|
||||
|
||||
/**************************************************************************/
|
||||
/* TOKEN structure:
|
||||
* This structure is used to parse strings. The original string is
|
||||
* tokenized into a set of tokens via separation wrt white space.
|
||||
* Both the tokens and the original
|
||||
* string are stored within the structure
|
||||
*/
|
||||
|
||||
struct TOKEN {
|
||||
char* orig_str;
|
||||
char* tok_str;
|
||||
char* tok_ptr[MAXTOKENS];
|
||||
int ntokes;
|
||||
TOKEN(void);
|
||||
~TOKEN();
|
||||
TOKEN(const char* str);
|
||||
};
|
||||
|
||||
|
||||
#define NO_DEFAULT_INT -68361
|
||||
#define NO_DEFAULT_BOOLEAN NO_DEFAULT_INT
|
||||
#define NO_DEFAULT_DOUBLE -1.241E+11
|
||||
#define NO_DEFAULT_STR "NO_DEFAULT"
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
/* Prototypes for routines tok_input_util.c */
|
||||
/**************************************************************************/
|
||||
|
||||
extern bool get_next_keyLine(FILE*, TOKEN*, TOKEN*);
|
||||
extern int tok_to_int(const TOKEN*, const int, const int,
|
||||
const int, bool*);
|
||||
extern int str_to_int(const char*, const int, const int,
|
||||
const int, bool*);
|
||||
extern double tok_to_double(const TOKEN*, const double, const double,
|
||||
const double, bool*);
|
||||
extern double str_to_double(const char*, const double, const double,
|
||||
const double, bool*);
|
||||
extern bool tok_to_boolean(const TOKEN*, const int, bool*);
|
||||
extern bool str_to_boolean(const char*, const int, bool*);
|
||||
extern char* tok_to_string(const TOKEN*, const int, const int,
|
||||
const char*, bool*);
|
||||
extern char* str_to_string(const char*, const char*, bool*);
|
||||
extern int scan_for_int(FILE*, const char*, const int, const int);
|
||||
extern double scan_for_double(FILE*, const char*, const double,
|
||||
const double);
|
||||
extern char* scan_for_string(FILE*, const char*, const int, const int);
|
||||
extern bool scan_for_boolean(FILE*, const char*);
|
||||
extern int scan_for_line(FILE*, const char*, char [], const char,
|
||||
const int);
|
||||
extern int read_line(FILE*, char [], const int);
|
||||
extern int read_string(FILE*, char [], const char);
|
||||
extern int strip(char []);
|
||||
extern void lower_case(char []);
|
||||
extern char* TokToStrng(const TOKEN*);
|
||||
extern int stokenize(char*, const char*, char *[], const int);
|
||||
extern bool strmatch(const char*, const char*);
|
||||
extern bool strstrmatch(const char*, const char*);
|
||||
extern bool strtokmatch(const TOKEN*, const char*);
|
||||
extern bool toktokmatch(const TOKEN*, const TOKEN*);
|
||||
extern void fillTokStruct(TOKEN*, const char*);
|
||||
extern void copyTokStruct(TOKEN*, const TOKEN*);
|
||||
extern int in_char_list(const char* const, const char** const, int);
|
||||
extern char* copy_string(const char*);
|
||||
extern void strip_item_from_token(int, TOKEN*);
|
||||
/**************************************************************************/
|
||||
#endif /* END OF TOK_INPUT_UTIL_H */
|
||||
/**************************************************************************/
|
||||
|
||||
Loading…
Add table
Reference in a new issue