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

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  type
 

Macros

#define FLAG_C   1
 
#define FLAG_SQL   2
 
#define TYPE_C(s)   {s, #s, FLAG_C }
 
#define TYPE_SQL(s)   {s, #s, FLAG_SQL }
 
#define TYPE_BOTH(s, s2)   {s, #s, FLAG_SQL|FLAG_C }
 

Functions

static const char * get_type_name (SQLSMALLINT type)
 
static void check_msg (int check, const char *msg)
 
int main (int argc, char **argv)
 

Variables

static const struct type types []
 
static int result = 0
 

Macro Definition Documentation

◆ FLAG_C

#define FLAG_C   1

Definition at line 12 of file type.c.

◆ FLAG_SQL

#define FLAG_SQL   2

Definition at line 13 of file type.c.

◆ TYPE_BOTH

#define TYPE_BOTH (   s,
  s2 
)    {s, #s, FLAG_SQL|FLAG_C }

Definition at line 17 of file type.c.

◆ TYPE_C

#define TYPE_C (   s)    {s, #s, FLAG_C }

Definition at line 15 of file type.c.

◆ TYPE_SQL

#define TYPE_SQL (   s)    {s, #s, FLAG_SQL }

Definition at line 16 of file type.c.

Function Documentation

◆ check_msg()

static void check_msg ( int  check,
const char *  msg 
)
static

Definition at line 88 of file type.c.

References check, and result.

Referenced by main().

◆ get_type_name()

static const char* get_type_name ( SQLSMALLINT  type)
static

Definition at line 75 of file type.c.

References type::name, type::type, and types.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ result

int result = 0
static

Definition at line 85 of file type.c.

Referenced by check_msg(), and main().

◆ types

const struct type types[]
static

Definition at line 1 of file type.c.

Referenced by get_type_name(), and main().

Modified on Tue Apr 30 06:40:32 2024 by modify_doxy.py rev. 669887