[unixODBC-dev] patch for __ptr_as_string prototype

Peter Harvey pharvey at codebydesign.com
Sat Apr 14 08:47:57 BST 2007


DataManagerII, odbctest need small fix for same reason.

--
Peter

> -----Original Message-----
> From: unixodbc-dev-bounces at easysoft.com [mailto:unixodbc-dev-
> bounces at easysoft.com] On Behalf Of Andrew Morrow
> Sent: Wednesday, April 11, 2007 12:45 PM
> To: unixodbc-dev at easysoft.com
> Subject: [unixODBC-dev] patch for __ptr_as_string prototype
> 
> Hi,
> 
> On the CVS head, the prototype and definition of __ptr_as_string
> currently disagree about the type of ptr. For LP64 platforms where the
> sizes of SQLINTEGER and SQLLEN differ, this doesn't compile.
> 
> The following patch updates drivermanager.h to match the recent change
> to __ptr_as_string in __info.c.
> 
> Index: drivermanager.h
> ===================================================================
> RCS file: /cvsroot/unixodbc/unixODBC/DriverManager/drivermanager.h,v
> retrieving revision 1.37
> diff -c -r1.37 drivermanager.h
> *** drivermanager.h     28 Feb 2007 15:37:49 -0000      1.37
> --- drivermanager.h     10 Apr 2007 18:22:34 -0000
> ***************
> *** 653,659 ****
>  int wide_strlen( SQLWCHAR *str1 );
>  int wide_ansi_strncmp( SQLWCHAR *str1, char *str2, int len );
>  char * __get_pid( SQLCHAR *str );
> ! char * __ptr_as_string( SQLCHAR *s, SQLINTEGER *ptr );
>  char * __sptr_as_string( SQLCHAR *s, SQLSMALLINT *ptr );
>  char * __info_as_string( SQLCHAR *s, SQLINTEGER typ );
>  void __clear_internal_error( struct error *error_handle );
> --- 653,659 ----
>  int wide_strlen( SQLWCHAR *str1 );
>  int wide_ansi_strncmp( SQLWCHAR *str1, char *str2, int len );
>  char * __get_pid( SQLCHAR *str );
> ! char * __ptr_as_string( SQLCHAR *s, SQLLEN *ptr );
>  char * __sptr_as_string( SQLCHAR *s, SQLSMALLINT *ptr );
>  char * __info_as_string( SQLCHAR *s, SQLINTEGER typ );
>  void __clear_internal_error( struct error *error_handle );
> 
> Thanks,
> Andrew
> _______________________________________________
> unixODBC-dev mailing list
> unixODBC-dev at easysoft.com
> http://mail.easysoft.com/mailman/listinfo/unixodbc-dev




More information about the unixODBC-dev mailing list