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

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  Record
 

Macros

#define ARRAY_SIZE   10
 
#define REC(f, n)   (((char*)f)+rec_size*(n))
 
#define DESCS(n)   (rec ? (SQLCHAR*)REC(descs,n): (descs+(n)*desc_len))
 
#define IDS(n)   *(rec ? (SQLUINTEGER*)REC(ids,n) : &ids[n])
 
#define ID_LENS(n)   *(rec ? (SQLLEN*)REC(id_lens,n) : &id_lens[n])
 
#define DESC_LENS(n)   *(rec ? (SQLLEN*)REC(desc_lens,n) : &desc_lens[n])
 

Functions

static void query_test (const char *expected, const char *expected_status)
 
int main (int argc, char *argv[])
 

Variables

static const char * test_query = NULL
 
static int trunc = 0
 
static int record_bind = 0
 

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE   10

◆ DESC_LENS

#define DESC_LENS (   n)    *(rec ? (SQLLEN*)REC(desc_lens,n) : &desc_lens[n])

◆ DESCS

#define DESCS (   n)    (rec ? (SQLCHAR*)REC(descs,n): (descs+(n)*desc_len))

◆ ID_LENS

#define ID_LENS (   n)    *(rec ? (SQLLEN*)REC(id_lens,n) : &id_lens[n])

◆ IDS

#define IDS (   n)    *(rec ? (SQLUINTEGER*)REC(ids,n) : &ids[n])

◆ REC

#define REC (   f,
  n 
)    (((char*)f)+rec_size*(n))

Function Documentation

◆ main()

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

◆ query_test()

static void query_test ( const char *  expected,
const char *  expected_status 
)
static

Variable Documentation

◆ record_bind

int record_bind = 0
static

Definition at line 9 of file array_out.c.

Referenced by main(), and query_test().

◆ test_query

const char* test_query = NULL
static

Definition at line 7 of file array_out.c.

Referenced by main(), and query_test().

◆ trunc

int trunc = 0
static

Definition at line 8 of file array_out.c.

Referenced by main(), and query_test().

Modified on Sat Jun 15 11:51:54 2024 by modify_doxy.py rev. 669887