Skip to Content.
Sympa Menu

freetds - Patch for dblib

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Harald Fernengel <harry AT bnro.de>
  • To: camber AT ais.org
  • Cc: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Patch for dblib
  • Date: Mon, 22 Oct 2001 16:37:56 +0200

Hello,

attached is a small patch that will make dblib more compatible to Sybase's
implementation and it will also work together with Qt's QTDS7 plugin.

Could someone with CVS access please apply it?

Thanks,

Harry
Index: include/sybdb.h
===================================================================
RCS file: /cvsroot/freetds/freetds/include/sybdb.h,v
retrieving revision 1.1.1.1
diff -u -3 -r1.1.1.1 sybdb.h
--- include/sybdb.h	2001/10/12 23:28:55	1.1.1.1
+++ include/sybdb.h	2001/10/22 10:49:28
@@ -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, 
Index: src/dblib/dblib.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/dblib/dblib.c,v
retrieving revision 1.1.1.1
diff -u -3 -r1.1.1.1 dblib.c
--- src/dblib/dblib.c	2001/10/12 23:29:09	1.1.1.1
+++ src/dblib/dblib.c	2001/10/22 10:49:35
@@ -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, 10/22/2001

Archive powered by MHonArc 2.6.24.

Top of Page