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

Go to the source code of this file.

Go to the repository for this file.

Macros

#define LEN(x)   (x) ? (SQLSMALLINT) strlen(x) : 0
 
#define STR(n)   str(int_buf, n)
 

Functions

static void ReadCol (int i)
 
static void TestProc (const char *catalog, const char *type, const char *expected)
 
static void TestTable (const char *catalog, const char *type, const char *expected)
 
static const char * str (char *buf, int n)
 
int main (int argc, char *argv[])
 

Variables

static char software_version [] = "$Id: stats.c 102217 2024-04-09 15:01:41Z ucko $"
 
static void * no_unused_var_warn [] = { software_version, no_unused_var_warn }
 
static SQLINTEGER cnamesize
 
static char output [256]
 
static const char * proc = "stat_proc"
 
static const char * table = "stat_proc"
 
static const char * column = "@t"
 

Macro Definition Documentation

◆ LEN

#define LEN (   x)    (x) ? (SQLSMALLINT) strlen(x) : 0

Definition at line 23 of file stats.c.

◆ STR

#define STR (   n)    str(int_buf, n)

Definition at line 88 of file stats.c.

Function Documentation

◆ main()

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

◆ ReadCol()

static void ReadCol ( int  i)
static

Definition at line 12 of file stats.c.

References CHKGetData, cnamesize, i, output, and SQL_C_CHAR.

Referenced by TestProc(), and TestTable().

◆ str()

static const char* str ( char *  buf,
int  n 
)
static

Definition at line 91 of file stats.c.

References buf, and n.

◆ TestProc()

static void TestProc ( const char *  catalog,
const char *  type,
const char *  expected 
)
static

◆ TestTable()

static void TestTable ( const char *  catalog,
const char *  type,
const char *  expected 
)
static

Variable Documentation

◆ cnamesize

SQLINTEGER cnamesize
static

Definition at line 8 of file stats.c.

Referenced by ReadCol().

◆ column

const char* column = "@t"
static

Definition at line 21 of file stats.c.

Referenced by TestProc(), and TestTable().

◆ no_unused_var_warn

void* no_unused_var_warn[] = { software_version, no_unused_var_warn }
static

Definition at line 6 of file stats.c.

◆ output

char output[256]
static

Definition at line 9 of file stats.c.

Referenced by ReadCol(), TestProc(), and TestTable().

◆ proc

const char* proc = "stat_proc"
static

Definition at line 19 of file stats.c.

Referenced by TestProc().

◆ software_version

char software_version[] = "$Id: stats.c 102217 2024-04-09 15:01:41Z ucko $"
static

Definition at line 5 of file stats.c.

◆ table

const char* table = "stat_proc"
static

Definition at line 20 of file stats.c.

Referenced by TestTable().

Modified on Sun Nov 08 14:01:48 2026 by modify_doxy.py rev. 717554