NCBI C++ ToolKit
cstypes.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
2  * Copyright (C) 1998-1999 Brian Bruns
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef _cstypes_h_
21 #define _cstypes_h_
22 
23 #include "tds_sysdep_public.h"
24 
25 #ifndef NCBI_DBAPI_RENAME_CTLIB
26 # define NCBI_DBAPI_RENAME_CTLIB
27 #endif
28 #include <../impl/rename_ftds_ctlib.h>
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #if 0
34 }
35 #endif
36 #endif
37 
38 static const char rcsid_cstypes_h[] = "$Id: cstypes.h 80645 2017-12-28 17:20:38Z ucko $";
40 
47 typedef unsigned char CS_TINYINT;
48 typedef char CS_CHAR;
49 typedef unsigned char CS_BYTE;
53 typedef void CS_VOID;
54 typedef unsigned char CS_IMAGE;
55 typedef unsigned char CS_TEXT;
56 typedef unsigned char CS_LONGBINARY;
57 typedef unsigned char CS_LONGCHAR;
58 typedef long CS_LONG;
59 typedef unsigned char CS_BINARY;
61 typedef unsigned char CS_BIT;
62 
64 
65 #define CS_MAX_NAME 132
66 #define CS_MAX_SCALE 77
67 #define CS_MAX_PREC 77 /* used by php */
68 #define CS_MAX_NUMLEN 33 /* used by roguewave */
69 #define CS_MAX_MSG 1024
70 #define CS_SQLSTATE_SIZE 8
71 #define CS_OBJ_NAME 400
72 #define CS_TP_SIZE 16 /* text pointer */
73 #define CS_TS_SIZE 8 /* length of timestamp */
74 
75 
76 typedef struct _cs_numeric
77 {
78  unsigned char precision;
79  unsigned char scale;
80  unsigned char array[CS_MAX_NUMLEN];
82 
84 
85 typedef struct _cs_varbinary
86 {
88  CS_CHAR array[256];
90 
91 typedef struct _cs_varchar
92 {
93  CS_SMALLINT len; /* length of the string */
94  CS_CHAR str[256]; /* string, no NULL terminator */
96 
97 typedef struct _cs_config CS_CONFIG;
98 typedef struct _cs_context CS_CONTEXT;
99 typedef struct _cs_connection CS_CONNECTION;
100 typedef struct _cs_locale CS_LOCALE;
101 typedef struct _cs_command CS_COMMAND;
102 typedef struct _cs_blk_row CS_BLK_ROW;
103 
104 typedef struct _cs_iodesc
105 {
120 
121 typedef struct _cs_datafmt
122 {
135 
136 typedef struct _cs_money
137 {
141 
142 typedef struct _cs_money4
143 {
146 
147 typedef CS_INT CS_DATE;
148 
149 typedef CS_INT CS_TIME;
150 
153 
154 typedef struct _cs_datetime
155 {
159 
160 typedef struct _cs_datetime4
161 {
165 
166 typedef struct _cs_daterec
167 {
181 
183 
184 typedef struct _cs_clientmsg
185 {
197 
198 typedef struct _cs_servermsg
199 {
214 
215 #ifdef __cplusplus
216 #if 0
217 {
218 #endif
219 }
220 #endif
221 
222 #endif
#define CS_TP_SIZE
Definition: cstypes.h:72
unsigned char CS_IMAGE
Definition: cstypes.h:54
struct _cs_blk_row CS_BLK_ROW
Definition: cstypes.h:102
Int4 CS_INT
Definition: cstypes.h:41
Uint4 CS_UINT
Definition: cstypes.h:42
unsigned char CS_LONGCHAR
Definition: cstypes.h:57
double CS_FLOAT
Definition: cstypes.h:51
float CS_REAL
Definition: cstypes.h:50
Uint2 CS_USMALLINT
Definition: cstypes.h:46
CS_NUMERIC CS_DECIMAL
Definition: cstypes.h:83
#define CS_MAX_NAME
Definition: cstypes.h:65
unsigned char CS_BIT
Definition: cstypes.h:61
struct _cs_datetime4 CS_DATETIME4
Int2 CS_SMALLINT
Definition: cstypes.h:45
#define CS_MAX_NUMLEN
Definition: cstypes.h:68
CS_UBIGINT CS_BIGTIME
Definition: cstypes.h:152
struct _cs_clientmsg CS_CLIENTMSG
Int4 CS_BOOL
Definition: cstypes.h:52
#define CS_TS_SIZE
Definition: cstypes.h:73
unsigned char CS_TINYINT
Definition: cstypes.h:47
Int8 CS_BIGINT
Definition: cstypes.h:43
CS_UBIGINT CS_BIGDATETIME
Definition: cstypes.h:151
struct _cs_varbinary CS_VARBINARY
CS_INT CS_TIME
Definition: cstypes.h:149
#define CS_MAX_MSG
Definition: cstypes.h:69
struct _cs_money4 CS_MONEY4
unsigned char CS_TEXT
Definition: cstypes.h:55
static const char rcsid_cstypes_h[]
Definition: cstypes.h:38
struct _cs_servermsg CS_SERVERMSG
long CS_LONG
Definition: cstypes.h:58
void CS_VOID
Definition: cstypes.h:53
Uint8 CS_UBIGINT
Definition: cstypes.h:44
static const void *const no_unused_cstypes_h_warn[]
Definition: cstypes.h:39
struct _cs_varchar CS_VARCHAR
unsigned char CS_BYTE
Definition: cstypes.h:49
CS_INT CS_RETCODE
Definition: cstypes.h:63
Uint2 CS_USHORT
Definition: cstypes.h:60
#define CS_OBJ_NAME
Definition: cstypes.h:71
CS_INT CS_DATE
Definition: cstypes.h:147
unsigned char CS_BINARY
Definition: cstypes.h:59
struct _cs_daterec CS_DATEREC
CS_INT CS_MSGNUM
Definition: cstypes.h:182
struct _cs_iodesc CS_IODESC
unsigned char CS_LONGBINARY
Definition: cstypes.h:56
struct _cs_datafmt CS_DATAFMT
char CS_CHAR
Definition: cstypes.h:48
#define CS_SQLSTATE_SIZE
Definition: cstypes.h:70
struct _cs_money CS_MONEY
struct _cs_datetime CS_DATETIME
struct _cs_numeric CS_NUMERIC
CS_CHAR osstring[1024]
Definition: cstypes.h:191
CS_INT sqlstatelen
Definition: cstypes.h:195
CS_INT severity
Definition: cstypes.h:186
CS_MSGNUM msgnumber
Definition: cstypes.h:187
CS_INT status
Definition: cstypes.h:193
CS_BYTE sqlstate[8]
Definition: cstypes.h:194
CS_INT osnumber
Definition: cstypes.h:190
CS_CHAR msgstring[1024]
Definition: cstypes.h:188
CS_INT msgstringlen
Definition: cstypes.h:189
CS_INT osstringlen
Definition: cstypes.h:192
CS_LOCALE * locale
Definition: cstypes.h:133
CS_INT format
Definition: cstypes.h:126
CS_INT maxlength
Definition: cstypes.h:127
CS_INT precision
Definition: cstypes.h:129
CS_INT usertype
Definition: cstypes.h:132
CS_INT count
Definition: cstypes.h:131
CS_INT datatype
Definition: cstypes.h:125
CS_INT scale
Definition: cstypes.h:128
CS_INT namelen
Definition: cstypes.h:124
CS_CHAR name[132]
Definition: cstypes.h:123
CS_INT status
Definition: cstypes.h:130
CS_INT datemonth
Definition: cstypes.h:169
CS_INT datesecprec
Definition: cstypes.h:179
CS_INT datetzone
Definition: cstypes.h:177
CS_INT datedmonth
Definition: cstypes.h:170
CS_INT datemsecond
Definition: cstypes.h:176
CS_INT dateyear
Definition: cstypes.h:168
CS_INT datesecfrac
Definition: cstypes.h:178
CS_INT dateminute
Definition: cstypes.h:174
CS_INT datehour
Definition: cstypes.h:173
CS_INT datedweek
Definition: cstypes.h:172
CS_INT datedyear
Definition: cstypes.h:171
CS_INT datesecond
Definition: cstypes.h:175
CS_USHORT minutes
Definition: cstypes.h:163
CS_USHORT days
Definition: cstypes.h:162
CS_INT dttime
Definition: cstypes.h:157
CS_INT dtdays
Definition: cstypes.h:156
CS_BYTE timestamp[8]
Definition: cstypes.h:115
CS_LOCALE * locale
Definition: cstypes.h:108
CS_INT usertype
Definition: cstypes.h:109
CS_INT iotype
Definition: cstypes.h:106
CS_INT total_txtlen
Definition: cstypes.h:110
CS_INT textptrlen
Definition: cstypes.h:118
CS_INT namelen
Definition: cstypes.h:114
CS_INT offset
Definition: cstypes.h:111
CS_BYTE textptr[16]
Definition: cstypes.h:117
CS_CHAR name[400]
Definition: cstypes.h:113
CS_INT datatype
Definition: cstypes.h:107
CS_INT timestamplen
Definition: cstypes.h:116
CS_BOOL log_on_update
Definition: cstypes.h:112
CS_INT mny4
Definition: cstypes.h:144
CS_UINT mnylow
Definition: cstypes.h:139
CS_INT mnyhigh
Definition: cstypes.h:138
unsigned char precision
Definition: cstypes.h:78
unsigned char scale
Definition: cstypes.h:79
CS_INT status
Definition: cstypes.h:210
CS_CHAR proc[132]
Definition: cstypes.h:207
CS_CHAR text[1024]
Definition: cstypes.h:203
CS_MSGNUM msgnumber
Definition: cstypes.h:200
CS_INT line
Definition: cstypes.h:209
CS_INT sqlstatelen
Definition: cstypes.h:212
CS_BYTE sqlstate[8]
Definition: cstypes.h:211
CS_INT svrnlen
Definition: cstypes.h:206
CS_CHAR svrname[132]
Definition: cstypes.h:205
CS_INT severity
Definition: cstypes.h:202
CS_INT proclen
Definition: cstypes.h:208
CS_INT state
Definition: cstypes.h:201
CS_INT textlen
Definition: cstypes.h:204
CS_SMALLINT len
Definition: cstypes.h:87
CS_SMALLINT len
Definition: cstypes.h:93
CS_CHAR str[256]
Definition: cstypes.h:94
#define tds_sysdep_real32_type
#define tds_sysdep_int16_type
#define tds_sysdep_uint16_type
#define tds_sysdep_int64_type
#define tds_sysdep_uint32_type
#define tds_sysdep_int32_type
#define tds_sysdep_uint64_type
#define tds_sysdep_real64_type
Modified on Fri Jan 05 07:22:43 2024 by modify_doxy.py rev. 669887