Skip to Content.
Sympa Menu

freetds - Re: [freetds] A couple of bugs in 0.91 with dblib bcp library

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] A couple of bugs in 0.91 with dblib bcp library
  • Date: Mon, 23 May 2011 17:09:00 +0200

2011/5/22 James K. Lowden <jklowden AT freetds.org>:
...
>
>> How I miss C++ and its type safety, I would use an enum and compiler
>> gave me at least a warning :)
>
> tds.h    144 #define TDS_SUCCESS 1
>
> Your enum awaits, sire.  ;-)
>

Why things that seems easy are not that easy ?? Cfr
http://stackoverflow.com/questions/366017/what-is-the-size-of-an-enum-in-c.

That is if I define RETCODE as an enum I have to define my enumerator
correctly in order to not avoid ABI compatibility...

freddy




Archive powered by MHonArc 2.6.24.

Top of Page