NCBI C++ ToolKit
|
#include "common.h"
#include <freetds/time.h>
#include "replacements.h"
#include <common/test_assert.h>
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | PATH_MAX 256 |
Functions | |
void | set_malloc_options (void) |
static void | free_file (void) |
int | read_login_info (int argc, char **argv) |
RETCODE | sql_cmd (DBPROCESS *dbproc) |
RETCODE | sql_rewind (void) |
RETCODE | sql_reopen (const char *fn) |
int | syb_msg_handler (DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity, char *msgtext, char *srvname, char *procname, int line) |
int | syb_err_handler (DBPROCESS *dbproc, int severity, int dberr, int oserr, char *dberrstr, char *oserrstr) |
Variables | |
char | USER [512] |
char | SERVER [512] |
char | PASSWORD [512] |
char | DATABASE [512] |
static char | sql_file [256] |
static FILE * | input_file = NULL |
static char * | ARGV0 = NULL |
static char * | ARGV0B = NULL |
static char * | DIRNAME = NULL |
static const char * | BASENAME = NULL |
char | free_file_registered = 0 |
|
static |
Definition at line 90 of file common.c.
References ARGV0, ARGV0B, BASENAME, DIRNAME, free(), input_file, and NULL.
Referenced by read_login_info().
Definition at line 107 of file common.c.
References ARGV0, ARGV0B, assert, basename, BASENAME, database, DATABASE, dbrecftos(), DIRNAME, exit(), free(), free_file(), free_file_registered, FREETDS_SRCDIR, getopt, in(), input_file, len, NULL, optarg, PASSWORD, PATH_MAX, PWD, SERVER, sql_file, util::strcmp(), strdup, and USER.
void set_malloc_options | ( | void | ) |
Definition at line 280 of file common.c.
References BASENAME, dbcmd(), dbproc, exit(), i, input_file, NULL, sql_file, strcasecmp, and SUCCEED.
Referenced by create_tables(), do_test(), drop_table(), init(), init_proc(), insert_row(), main(), query(), select_rows(), start_query(), test(), and test_file().
RETCODE sql_rewind | ( | void | ) |
int syb_err_handler | ( | DBPROCESS * | dbproc, |
int | severity, | ||
int | dberr, | ||
int | oserr, | ||
char * | dberrstr, | ||
char * | oserrstr | ||
) |
Definition at line 404 of file common.c.
References DBDEAD, dbgetuserdata(), dbproc, exit(), EXIT_FAILURE, INT_CANCEL, NULL, SYBECOFL, and SYBESMSG.
Referenced by err_handler(), ignore_err_handler(), main(), test(), and test_file().
int syb_msg_handler | ( | DBPROCESS * | dbproc, |
DBINT | msgno, | ||
int | msgstate, | ||
int | severity, | ||
char * | msgtext, | ||
char * | srvname, | ||
char * | procname, | ||
int | line | ||
) |
Definition at line 334 of file common.c.
References dbgetuserdata(), dbproc, exit(), EXIT_FAILURE, and NULL.
Referenced by ignore_msg_handler(), main(), test(), and test_file().
|
static |
Definition at line 37 of file common.c.
Referenced by free_file(), and read_login_info().
|
static |
Definition at line 38 of file common.c.
Referenced by free_file(), and read_login_info().
Definition at line 40 of file common.c.
Referenced by free_file(), read_login_info(), and sql_cmd().
|
static |
Definition at line 39 of file common.c.
Referenced by free_file(), and read_login_info().
char free_file_registered = 0 |
Definition at line 88 of file common.c.
Referenced by read_login_info().
|
static |
Definition at line 35 of file common.c.
Referenced by CWinMaskUtil::CInputBioseq_CI::CInputBioseq_CI(), CPsiBlastInputClustalW::CPsiBlastInputClustalW(), CSeqMaskerIstatBin::CSeqMaskerIstatBin(), free_file(), read_login_info(), CGridCommandLineInterfaceApp::Run(), CCacheIndexCopyApp::Run(), s_DeclareBlastInput(), CStdCmdLineArgs::SetInputStream(), CBlastAppArgs::SetInputStream(), sql_cmd(), sql_reopen(), sql_rewind(), test_file(), CMakeClusterDBApp::x_ProcessInputFile(), CPsiBlastInputClustalW::x_ReadAsciiMsa(), CMakeBlastDBApp::x_VerifyInputFilesType(), and CGffDeconcatApp::xSetExtension().
|
static |
Definition at line 34 of file common.c.
Referenced by read_login_info(), sql_cmd(), and sql_reopen().