FreeTDS API: src/odbc/sqlwparams.h Source File

FreeTDS API

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sqlwparams.h
1 #if 0
2 # ODBC_FUNC(SQLTest, (P(SQLSMALLINT, x), PCHAR(y) WIDE))
3 #endif
4
5 #undef WIDE
6 #undef P
7 #undef PCHAR
8 #undef PCHARIN
9 #undef PCHAROUT
10
11 #ifdef ENABLE_ODBC_WIDE
12 # define WIDE , int wide
13 # define PCHAR(a) ODBC_CHAR* a
14 #else
15 # define WIDE
16 # define PCHAR(a) SQLCHAR* a
17 #endif
18
19 #define P(a,b) a b
20 #define PCHARIN(n,t) PCHAR(sz ## n), P(t, cb ## n)
21 #define PCHAROUT(n,t) PCHAR(sz ## n), P(t, cb ## n ## Max), P(t FAR*, pcb ## n)
22
23 #define ODBC_FUNC(name, params) \
24 static SQLRETURN _ ## name params
25