freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Harald Fernengel <harry AT bnro.de>
- To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
- Subject: Patch for dblib
- Date: Thu, 6 Sep 2001 00:07:14 +0200
Hi,
this patch will make dblib more compatible with the Sybase and M$
implemetation. Thanks to Mark J. Lilback for pointing me in the right
direction. Please apply...
Harry
===================================================================
RCS file: /Repository/freetds/include/sybdb.h,v
retrieving revision 1.31
diff -u -3 -r1.31 sybdb.h
--- sybdb.h 2001/07/02 00:57:40 1.31
+++ sybdb.h 2001/09/05 21:55:23
@@ -356,8 +356,8 @@
extern RETCODE dbuse(DBPROCESS *dbproc,char *dbname);
extern DBBOOL DBDEAD(DBPROCESS *dbproc);
-extern int (*dbmsghandle( int (*handler)() )) ();
-extern int (*dberrhandle( int (*handler)() )) ();
+extern MHANDLEFUNC dbmsghandle(MHANDLEFUNC handler);
+extern EHANDLEFUNC dberrhandle(EHANDLEFUNC handler);
extern RETCODE BCP_SETL(LOGINREC *login, DBBOOL enable);
extern RETCODE bcp_init(DBPROCESS *dbproc, char *tblname, char *hfile,
===================================================================
RCS file: /Repository/freetds/src/dblib/dblib.c,v
retrieving revision 1.82
diff -u -3 -r1.82 dblib.c
--- dblib.c 2001/06/09 23:48:48 1.82
+++ dblib.c 2001/09/05 21:53:46
@@ -1542,7 +1542,7 @@
return TRUE;
}
-int (*dberrhandle(int (*handler)())) ()
+EHANDLEFUNC dberrhandle(EHANDLEFUNC handler)
{
int (*retFun)() = g_dblib_err_handler;
@@ -1550,7 +1550,7 @@
return retFun;
}
-int (*dbmsghandle(int (*handler)()))()
+MHANDLEFUNC dbmsghandle(MHANDLEFUNC handler)
{
int (*retFun)() = g_dblib_msg_handler;
- Patch for dblib, Harald Fernengel, 09/05/2001
Archive powered by MHonArc 2.6.24.