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

Go to the source code of this file.

Go to the SVN repository for this file.


#define MSDBLIB   1
#define test(a, b, c, d, e)   test(a, #a, b, c, d, e, __LINE__)


static void dump_addr (FILE *out, const char *msg, const void *p, size_t len)
static void chk (RETCODE ret, const char *msg)
static void zero_end (DBNUMERIC *num)
static void test (int bind_type, const char *bind_name, int override_prec, int override_scale, int out_prec, int out_scale, int line)
int main (int argc, char **argv)


static int msdblib

Macro Definition Documentation


#define MSDBLIB   1

Definition at line 1 of file numeric.c.

◆ test

#define test (   a,
)    test(a, #a, b, c, d, e, __LINE__)

Definition at line 170 of file numeric.c.

Function Documentation

◆ chk()

static void chk ( RETCODE  ret,
const char *  msg 

Definition at line 18 of file numeric.c.

References exit(), and SUCCEED.

Referenced by main(), and test().

◆ dump_addr()

static void dump_addr ( FILE *  out,
const char *  msg,
const void *  p,
size_t  len 

Definition at line 7 of file numeric.c.

References len, n, and out().

Referenced by test().

◆ main()

int main ( int  argc,
char **  argv 

◆ test()

static void test ( int  bind_type,
const char *  bind_name,
int  override_prec,
int  override_scale,
int  out_prec,
int  out_scale,
int  line 

◆ zero_end()

static void zero_end ( DBNUMERIC num)

Definition at line 28 of file numeric.c.

References assert, len, and DBNUMERIC::precision.

Referenced by test().

Variable Documentation

◆ msdblib

int msdblib

Definition at line 38 of file numeric.c.

Referenced by main(), tdsdbopen(), and test().

Modified on Tue May 21 10:59:04 2024 by rev. 669887