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

FreeTDS API

Loading...
Searching...
No Matches
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(name) ODBC_CHAR* name
14#else
15# define WIDE
16# define PCHAR(name) SQLCHAR* name
17#endif
18
20#define P(type, name) type name
22#define PCHARIN(name, len_type) \
23 PCHAR(sz ## name), P(len_type, cb ## name)
25#define PCHAROUT(name, len_type) \
26 PCHAR(sz ## name), P(len_type, cb ## name ## Max), P(len_type FAR*, pcb ## name)
27
28#define ODBC_FUNC(name, params) \
29 static SQLRETURN odbc_ ## name params
30