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

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define test(s, d, r)   test0(s, sizeof(s) - 1, 0, d, r, __LINE__)
 
#define test2(s, m, d, r)   test0(s, sizeof(s) - 1, m, d, r, __LINE__)
 

Functions

static void test0 (const char *src, int len, int midtype, int dsttype, const char *result, int line)
 
int main (int argc, char **argv)
 

Variables

static TDSCONTEXT ctx
 This test exercise manually conversions from types. More...
 
static int int_types []
 
static const char * int_values []
 

Macro Definition Documentation

◆ test

#define test (   s,
  d,
  r 
)    test0(s, sizeof(s) - 1, 0, d, r, __LINE__)

Definition at line 123 of file t0007.c.

◆ test2

#define test2 (   s,
  m,
  d,
  r 
)    test0(s, sizeof(s) - 1, m, d, r, __LINE__)

Definition at line 124 of file t0007.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ test0()

static void test0 ( const char *  src,
int  len,
int  midtype,
int  dsttype,
const char *  result,
int  line 
)
static

Variable Documentation

◆ ctx

TDSCONTEXT ctx
static

This test exercise manually conversions from types.

Does not require any connection.

Definition at line 31 of file t0007.c.

Referenced by main(), and test0().

◆ int_types

int int_types[]
static
Initial value:
= {
-1
}
@ SYBUINT8
Definition: proto.h:215
@ SYBUINT2
Definition: proto.h:213
@ SYBUINT4
Definition: proto.h:214
@ SYBUINT1
Definition: proto.h:212
#define SYBINT4
Definition: sybdb.h:170
#define SYBNUMERIC
Definition: sybdb.h:202
#define SYBINT8
Definition: sybdb.h:172
#define SYBINT1
Definition: sybdb.h:166
#define SYBMONEY
Definition: sybdb.h:190
#define SYBMONEY4
Definition: sybdb.h:188
#define SYBINT2
Definition: sybdb.h:168

Definition at line 127 of file t0007.c.

Referenced by main().

◆ int_values

const char* int_values[]
static
Initial value:
= {
"0",
"127", "255",
"128", "256",
"32767", "65535",
"32768", "65536",
"214748",
"214749",
"2147483647", "4294967295",
"2147483648", "4294967296",
"922337203685477",
"922337203685478",
"9223372036854775807", "18446744073709551615",
"9223372036854775808", "18446744073709551616",
"-128",
"-129",
"-32768",
"-32769",
"-214748",
"-214749",
"-2147483648",
"-2147483649",
"-922337203685477",
"-922337203685478",
"-9223372036854775808",
"-9223372036854775809",
}
#define NULL
Definition: ncbistd.hpp:225

Definition at line 136 of file t0007.c.

Referenced by main().

Modified on Wed May 15 15:10:39 2024 by modify_doxy.py rev. 669887