FreeTDS API

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

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sqlwparams.h
1 //#define FUNC NAME(SQLTest) (P(SQLSMALLINT, x), PCHAR(y) WIDE)
2
3 #ifdef ENABLE_ODBC_WIDE
4
5 #undef NAME
6 #undef WIDE
7 #undef P
8 #undef PCHAR
9 #undef PCHARIN
10 #undef PCHAROUT
11 #define NAME(a) _ ## a
12 #define WIDE , int wide
13 #define P(a,b) a b
14 #define PCHAR(a) ODBC_CHAR* a
15 #define PCHARIN(n,t) PCHAR(sz ## n), P(t, cb ## n)
16 #define PCHAROUT(n,t) PCHAR(sz ## n), P(t, cb ## n ## Max), P(t FAR*, pcb ## n)
17 static SQLRETURN FUNC;
18
19
20
21 #undef NAME
22 #undef WIDE
23 #undef PCHAR
24 #define NAME(a) a
25 #define WIDE
26 #define PCHAR(a) SQLCHAR* a
27 SQLRETURN ODBC_PUBLIC ODBC_API FUNC {
28
29 #undef NAME
30 #undef WIDE
31 #undef P
32 #undef PCHAR
33 #define NAME(a) _ ## a
34 #define WIDE ,0
35 #define P(a,b) b
36 #define PCHAR(a) (ODBC_CHAR*) a
37 return FUNC;
38 }
39
40
41
42 #undef NAME
43 #undef WIDE
44 #undef P
45 #undef PCHAR
46 #define NAME(a) a ## W
47 #define WIDE
48 #define P(a,b) a b
49 #define PCHAR(a) SQLWCHAR * a
50 SQLRETURN ODBC_PUBLIC ODBC_API FUNC {
51
52 #undef NAME
53 #undef WIDE
54 #undef P
55 #undef PCHAR
56 #define NAME(a) _ ## a
57 #define WIDE ,1
58 #define P(a,b) b
59 #define PCHAR(a) (ODBC_CHAR*) a
60 return FUNC;
61 }
62
63
64
65 #undef WIDE
66 #undef P
67 #undef PCHAR
68 #define WIDE , int wide
69 #define P(a,b) a b
70 #define PCHAR(a) ODBC_CHAR* a
71 static SQLRETURN FUNC
72
73
74
75 #else
76
77
78
79 #undef NAME
80 #undef WIDE
81 #undef P
82 #undef PCHAR
83 #undef PCHARIN
84 #undef PCHAROUT
85 #define NAME(a) _ ## a
86 #define WIDE
87 #define P(a,b) a b
88 #define PCHAR(a) SQLCHAR* a
89 #define PCHARIN(n,t) PCHAR(sz ## n), P(t, cb ## n)
90 #define PCHAROUT(n,t) PCHAR(sz ## n), P(t, cb ## n ## Max), P(t FAR*, pcb ## n)
91 static SQLRETURN FUNC;
92
93
94
95 #undef NAME
96 #undef WIDE
97 #undef P
98 #undef PCHAR
99 #define NAME(a) a
100 #define WIDE
101 #define P(a,b) a b
102 #define PCHAR(a) SQLCHAR* a
103 SQLRETURN ODBC_API FUNC {
104
105 #undef NAME
106 #undef WIDE
107 #undef P
108 #undef PCHAR
109 #define NAME(a) _ ## a
110 #define WIDE
111 #define P(a,b) b
112 #define PCHAR(a) a
113 return FUNC;
114 }
115
116
117 #undef NAME
118 #undef WIDE
119 #undef P
120 #undef PCHAR
121 #define NAME(a) _ ## a
122 #define WIDE
123 #define P(a,b) a b
124 #define PCHAR(a) SQLCHAR* a
125 static SQLRETURN FUNC
126
127 #endif
128
129
130 #undef FUNC
131