00001
00002
00003 #ifdef ENABLE_ODBC_WIDE
00004
00005 #undef NAME
00006 #undef WIDE
00007 #undef P
00008 #undef PCHAR
00009 #undef PCHARIN
00010 #undef PCHAROUT
00011 #define NAME(a) _ ## a
00012 #define WIDE , int wide
00013 #define P(a,b) a b
00014 #define PCHAR(a) ODBC_CHAR* a
00015 #define PCHARIN(n,t) PCHAR(sz ## n), P(t, cb ## n)
00016 #define PCHAROUT(n,t) PCHAR(sz ## n), P(t, cb ## n ## Max), P(t FAR*, pcb ## n)
00017 static SQLRETURN FUNC;
00018
00019
00020
00021 #undef NAME
00022 #undef WIDE
00023 #undef PCHAR
00024 #define NAME(a) a
00025 #define WIDE
00026 #define PCHAR(a) SQLCHAR* a
00027 SQLRETURN ODBC_PUBLIC ODBC_API FUNC {
00028
00029 #undef NAME
00030 #undef WIDE
00031 #undef P
00032 #undef PCHAR
00033 #define NAME(a) _ ## a
00034 #define WIDE ,0
00035 #define P(a,b) b
00036 #define PCHAR(a) (ODBC_CHAR*) a
00037 return FUNC;
00038 }
00039
00040
00041
00042 #undef NAME
00043 #undef WIDE
00044 #undef P
00045 #undef PCHAR
00046 #define NAME(a) a ## W
00047 #define WIDE
00048 #define P(a,b) a b
00049 #define PCHAR(a) SQLWCHAR * a
00050 SQLRETURN ODBC_PUBLIC ODBC_API FUNC {
00051
00052 #undef NAME
00053 #undef WIDE
00054 #undef P
00055 #undef PCHAR
00056 #define NAME(a) _ ## a
00057 #define WIDE ,1
00058 #define P(a,b) b
00059 #define PCHAR(a) (ODBC_CHAR*) a
00060 return FUNC;
00061 }
00062
00063
00064
00065 #undef WIDE
00066 #undef P
00067 #undef PCHAR
00068 #define WIDE , int wide
00069 #define P(a,b) a b
00070 #define PCHAR(a) ODBC_CHAR* a
00071 static SQLRETURN FUNC
00072
00073
00074
00075 #else
00076
00077
00078
00079 #undef NAME
00080 #undef WIDE
00081 #undef P
00082 #undef PCHAR
00083 #undef PCHARIN
00084 #undef PCHAROUT
00085 #define NAME(a) _ ## a
00086 #define WIDE
00087 #define P(a,b) a b
00088 #define PCHAR(a) SQLCHAR* a
00089 #define PCHARIN(n,t) PCHAR(sz ## n), P(t, cb ## n)
00090 #define PCHAROUT(n,t) PCHAR(sz ## n), P(t, cb ## n ## Max), P(t FAR*, pcb ## n)
00091 static SQLRETURN FUNC;
00092
00093
00094
00095 #undef NAME
00096 #undef WIDE
00097 #undef P
00098 #undef PCHAR
00099 #define NAME(a) a
00100 #define WIDE
00101 #define P(a,b) a b
00102 #define PCHAR(a) SQLCHAR* a
00103 SQLRETURN ODBC_API FUNC {
00104
00105 #undef NAME
00106 #undef WIDE
00107 #undef P
00108 #undef PCHAR
00109 #define NAME(a) _ ## a
00110 #define WIDE
00111 #define P(a,b) b
00112 #define PCHAR(a) a
00113 return FUNC;
00114 }
00115
00116
00117 #undef NAME
00118 #undef WIDE
00119 #undef P
00120 #undef PCHAR
00121 #define NAME(a) _ ## a
00122 #define WIDE
00123 #define P(a,b) a b
00124 #define PCHAR(a) SQLCHAR* a
00125 static SQLRETURN FUNC
00126
00127 #endif
00128
00129
00130 #undef FUNC
00131