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

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

1 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
2  * Copyright (C) 2004 Frediano Ziglio
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 TDS_CHECKS_H
21 #define TDS_CHECKS_H
22 
23 #include <freetds/pushvis.h>
24 
25 #if ENABLE_EXTRA_CHECKS
26 #define CHECK_STRUCT_EXTRA(func,s) func(s)
27 #else
28 #define CHECK_STRUCT_EXTRA(func,s)
29 #endif
30 
31 #define CHECK_TDS_EXTRA(tds) CHECK_STRUCT_EXTRA(tds_check_tds_extra,tds)
32 #define CHECK_CONTEXT_EXTRA(ctx) CHECK_STRUCT_EXTRA(tds_check_context_extra,ctx)
33 #define CHECK_TDSENV_EXTRA(env) CHECK_STRUCT_EXTRA(tds_check_env_extra,env)
34 #define CHECK_COLUMN_EXTRA(column) CHECK_STRUCT_EXTRA(tds_check_column_extra,column)
35 #define CHECK_RESULTINFO_EXTRA(res_info) CHECK_STRUCT_EXTRA(tds_check_resultinfo_extra,res_info)
36 #define CHECK_PARAMINFO_EXTRA(res_info) CHECK_STRUCT_EXTRA(tds_check_resultinfo_extra,res_info)
37 #define CHECK_CURSOR_EXTRA(cursor) CHECK_STRUCT_EXTRA(tds_check_cursor_extra,cursor)
38 #define CHECK_DYNAMIC_EXTRA(dynamic) CHECK_STRUCT_EXTRA(tds_check_dynamic_extra,dynamic)
39 #define CHECK_CONN_EXTRA(conn)
40 
41 #if ENABLE_EXTRA_CHECKS
42 void tds_check_tds_extra(const TDSSOCKET * tds);
44 void tds_check_env_extra(const TDSENV * env);
46 void tds_check_resultinfo_extra(const TDSRESULTINFO * res_info);
47 void tds_check_cursor_extra(const TDSCURSOR * cursor);
48 void tds_check_dynamic_extra(const TDSDYNAMIC * dynamic);
49 #endif
50 
51 #if defined(HAVE_VALGRIND_MEMCHECK_H) && ENABLE_EXTRA_CHECKS
52 # include <valgrind/memcheck.h>
53 # define TDS_MARK_UNDEFINED(ptr, len) VALGRIND_MAKE_MEM_UNDEFINED(ptr, len)
54 #else
55 # define TDS_MARK_UNDEFINED(ptr, len) do {} while(0)
56 #endif
57 
58 #include <freetds/popvis.h>
59 
60 #endif /* TDS_CHECKS_H */
static TDSSOCKET * tds
Definition: collations.c:37
CS_CONTEXT * ctx
Definition: t0006.c:12
#define tds_check_resultinfo_extra
#define tds_check_env_extra
#define tds_check_cursor_extra
#define tds_check_tds_extra
#define tds_check_column_extra
#define tds_check_dynamic_extra
#define tds_check_context_extra
static const char * column
Definition: stats.c:23
Metadata about columns in regular and compute rows.
Definition: tds.h:761
Holds informations about a cursor.
Definition: tds.h:1007
Holds information for a dynamic (also called prepared) query.
Definition: tds.h:1047
Current environment as reported by the server.
Definition: tds.h:1033
Hold information for any results.
Definition: tds.h:842
Information for a server connection.
Definition: tds.h:1211
static HENV env
Definition: transaction2.c:38
Modified on Tue Apr 09 07:57:56 2024 by modify_doxy.py rev. 669887
Modified on Wed Apr 10 07:33:21 2024 by modify_doxy.py rev. 669887
Modified on Thu Apr 11 15:07:31 2024 by modify_doxy.py rev. 669887
Modified on Fri Apr 12 17:18:47 2024 by modify_doxy.py rev. 669887
Modified on Sat Apr 13 11:46:40 2024 by modify_doxy.py rev. 669887
Modified on Sun Apr 14 05:26:53 2024 by modify_doxy.py rev. 669887
Modified on Tue Apr 16 20:10:51 2024 by modify_doxy.py rev. 669887
Modified on Wed Apr 17 13:09:27 2024 by modify_doxy.py rev. 669887