NCBI C++ ToolKit
Macros | Functions | Variables
compute.c File Reference
#include "common.h"
#include <common/test_assert.h>
+ Include dependency graph for compute.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Macros

#define NAME_TEST
 
#define CheckFetch   main_line = __LINE__; CheckFetch
 

Functions

static void TestName (SQLSMALLINT index, const char *expected_name)
 
static void CheckFetch (const char *c1name, const char *c1, const char *c2)
 
int main (int argc, char *argv[])
 

Variables

static char col1 [256]
 
static char col2 [256]
 
static SQLINTEGER ind1
 
static SQLINTEGER ind2
 
static int main_line
 

Macro Definition Documentation

◆ CheckFetch

#define CheckFetch   main_line = __LINE__; CheckFetch

Definition at line 72 of file compute.c.

◆ NAME_TEST

#define NAME_TEST
Value:
do { \
if (strcmp(C(name), expected_name) != 0) \
{ \
sprintf(buf, "line %d: wrong name in column %d expected '%s' got '%s'", \
main_line, index, expected_name, C(name)); \
ODBC_REPORT_ERROR(buf); \
} \
} while(0)
static int main_line
Definition: compute.c:16
#define C(s)
Definition: common.h:231
char * buf
int strcmp(const char *str1, const char *str2)
Definition: odbc_utils.hpp:160

Function Documentation

◆ CheckFetch()

static void CheckFetch ( const char *  c1name,
const char *  c1,
const char *  c2 
)
static

Definition at line 48 of file compute.c.

References CHKFetch, col1, col2, exit(), ind1, ind2, main_line, util::strcmp(), and TestName().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ TestName()

static void TestName ( SQLSMALLINT  index,
const char *  expected_name 
)
static

Variable Documentation

◆ col1

char col1[256]
static

◆ col2

char col2[256]
static

◆ ind1

SQLINTEGER ind1
static

Definition at line 14 of file compute.c.

Referenced by CheckFetch(), DoTest(), and main().

◆ ind2

SQLINTEGER ind2
static

Definition at line 14 of file compute.c.

Referenced by CheckFetch(), DoTest(), main(), and test_with_conversions().

◆ main_line

int main_line
static

Definition at line 16 of file compute.c.

Referenced by CheckFetch().

Modified on Tue Apr 09 08:00:05 2024 by modify_doxy.py rev. 669887
Modified on Wed Apr 10 07:35:24 2024 by modify_doxy.py rev. 669887
Modified on Thu Apr 11 15:20:28 2024 by modify_doxy.py rev. 669887
Modified on Fri Apr 12 17:22:46 2024 by modify_doxy.py rev. 669887
Modified on Sat Apr 13 11:50:06 2024 by modify_doxy.py rev. 669887
Modified on Sun Apr 14 05:29:12 2024 by modify_doxy.py rev. 669887