NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | INFILE_NAME "t0016" |
#define | TABLE_NAME "#dblib0016" |
Functions | |
static void | failure (const char *fmt,...) |
static void | test_file (const char *fn) |
static int | compare_files (const char *fn1, const char *fn2) |
static unsigned | count_file_rows (FILE *f) |
int | main (int argc, char *argv[]) |
static int | ignore_msg_handler (DBPROCESS *dbproc, DBINT msgno, int state, int severity, char *text, char *server, char *proc, int line) |
static int | ignore_err_handler (DBPROCESS *dbproc, int severity, int dberr, int oserr, char *dberrstr, char *oserrstr) |
static size_t | fgets_raw (char *s, int len, FILE *f) |
Variables | |
static int | failed = 0 |
static DBPROCESS * | dbproc |
static int | got_error = 0 |
static char | line1 [1024 *16] |
static char | line2 [1024 *16] |
Definition at line 257 of file t0016.c.
References failure(), fgets_raw(), line1, line2, and NULL.
Referenced by test_file().
|
static |
Definition at line 309 of file t0016.c.
References assert, f(), fgets_raw(), last(), and line1.
Referenced by test_file().
Definition at line 13 of file t0016.c.
References failed.
Referenced by compare_files(), and test_file().
Definition at line 236 of file t0016.c.
Referenced by compare_files(), and count_file_rows().
|
static |
Definition at line 92 of file t0016.c.
References got_error, and INT_CANCEL.
Referenced by test_file().
Definition at line 33 of file t0016.c.
References BCP_SETL, DATABASE, dbclose(), dberrhandle(), dbexit(), dbinit(), dblogin(), dbloginfree(), dbmsghandle(), dbopen, dbproc, DBSETLAPP, DBSETLCHARSET, DBSETLPWD, DBSETLUSER, dbuse(), failed, INFILE_NAME, login, n, NULL, PASSWORD, read_login_info(), SERVER, set_malloc_options(), sql_reopen(), SUCCEED, syb_err_handler(), syb_msg_handler(), test_file(), TRUE, and USER.
Definition at line 102 of file t0016.c.
References bcp_colfmt(), bcp_columns(), bcp_exec(), bcp_init(), compare_files(), count_file_rows(), DB_IN, DB_OUT, dberrhandle(), dbmsghandle(), dbnextrow(), dbnumcols(), dbproc, dbresults(), dbsqlexec(), exit(), FAIL, failed, failure(), FREETDS_SRCDIR, got_error, i, ignore_err_handler(), ignore_msg_handler(), input_file, NO_MORE_RESULTS, NO_MORE_ROWS, sql_cmd(), SUCCEED, syb_err_handler(), syb_msg_handler(), SYBCHAR, and TABLE_NAME.
Referenced by main().
|
static |
Definition at line 30 of file t0016.c.
Referenced by main(), and test_file().
|
static |
Definition at line 10 of file t0016.c.
Referenced by failure(), main(), and test_file().
|
static |
Definition at line 82 of file t0016.c.
Referenced by ignore_err_handler(), ignore_msg_handler(), and test_file().
|
static |
Definition at line 98 of file t0016.c.
Referenced by compare_files(), count_file_rows(), CAddFeatureBetweenDlg::CreateControls(), CWordSubstitutionDlg::CreateControls(), CDiffText::Diff(), CLatLonCountryMap::s_CompareTwoLinesByCountry(), CLatLonCountryMap::s_CompareTwoLinesByLatLonOnly(), CLatLonCountryMap::s_CompareTwoLinesByLatLonThenCountry(), and sReadAA_I().
|
static |
Definition at line 99 of file t0016.c.
Referenced by compare_files(), CAddFeatureBetweenDlg::CreateControls(), CDiffText::Diff(), CLatLonCountryMap::s_CompareTwoLinesByCountry(), CLatLonCountryMap::s_CompareTwoLinesByLatLonOnly(), CLatLonCountryMap::s_CompareTwoLinesByLatLonThenCountry(), and sReadAA_I().