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.

Macros

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

Functions

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)
 

Variables

static int msdblib
 

Macro Definition Documentation

◆ MSDBLIB

#define MSDBLIB   1

Definition at line 1 of file numeric.c.

◆ test

#define test (   a,
  b,
  c,
  d,
 
)    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 
)
static

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 
)
static

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 
)
static

◆ zero_end()

static void zero_end ( DBNUMERIC num)
static

Definition at line 28 of file numeric.c.

References assert, len, and DBNUMERIC::precision.

Referenced by test().

Variable Documentation

◆ msdblib

int msdblib
static

Definition at line 38 of file numeric.c.

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

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