int lobj_type;
int ntables;
COL_INFO **col_info;
- long translation_option;
+ UDWORD translation_option;
HINSTANCE translation_handle;
DataSourceToDriverProc DataSourceToDriver;
DriverToDataSourceProc DriverToDataSource;
/* Abbrebiation is needed ? */
if (abbrev || strlen(connect_string) >= len)
{
- unsigned long flag = 0;
+ UInt4 flag = 0;
if (ci->disallow_premature)
flag |= BIT_DISALLOWPREMATURE;
if (ci->allow_keyset)
unfoldCXAttribute(ConnInfo *ci, const char *value)
{
int count;
- unsigned long flag;
+ UInt4 flag;
if (strlen(value) < 2)
{
*
* Comments: See "notice.txt" for copyright and license information.
*
- * $Id: psqlodbc.h,v 1.82 2004/02/04 08:55:28 dpage Exp $
+ * $Id: psqlodbc.h,v 1.83 2004/07/01 09:20:56 dpage Exp $
*
*/
#include "gpps.h"
#endif
+
#ifndef WIN32
-#define Int4 long int
-#define UInt4 unsigned int
-#define Int2 short
-#define UInt2 unsigned short
-#if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC)
+# if defined(HAVE_INTTYPES_H)
+# include <inttypes.h>
+# else
+# if defined(HAVE_STDINT_H)
+# include <stdint.h>
+# endif
+# endif
+
+# define Int4 int32_t
+# define UInt4 uint32_t
+# define Int2 int16_t
+# define UInt2 uint16_t
+
+# if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC)
typedef float SFLOAT;
typedef double SDOUBLE;
-#endif
+# endif
-#ifndef CALLBACK
-#define CALLBACK
-#endif
+# ifndef CALLBACK
+# define CALLBACK
+# endif
+
+#else /* WIN32 */
+
+# define Int4 int
+# define UInt4 unsigned int
+# define Int2 short
+# define UInt2 unsigned short
-#else
-#define Int4 int
-#define UInt4 unsigned int
-#define Int2 short
-#define UInt2 unsigned short
#endif
+
typedef UInt4 Oid;
#ifndef WIN32
struct sockaddr_un *un;
#endif /* HAVE_UNIX_SOCKETS */
int family, sLen;
- unsigned long iaddr;
+#ifdef WIN32
+ UInt4 iaddr;
+#else
+ in_addr_t iaddr;
+#endif
if (self->socket != -1)
{
* just the current row number. But it could be more sophisticated
* someday, such as mapping a key to a 32 bit value
*/
-unsigned long
+UInt4
SC_get_bookmark(StatementClass *self)
{
return (self->currTuple + 1);
void SC_free_params(StatementClass *self, char option);
void SC_log_error(const char *func, const char *desc, const StatementClass *self);
time_t SC_get_time(StatementClass *self);
-unsigned long SC_get_bookmark(StatementClass *self);
+UInt4 SC_get_bookmark(StatementClass *self);
RETCODE SC_pos_update(StatementClass *self, UWORD irow, UDWORD index);
RETCODE SC_pos_delete(StatementClass *self, UWORD irow, UDWORD index);
RETCODE SC_pos_refresh(StatementClass *self, UWORD irow, UDWORD index);