freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
WORDS_BIGENDIAN (was RE: [freetds] Running FreeTDS under VMS)
- From: "Craig A. Berry" <craigberry AT mac.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: WORDS_BIGENDIAN (was RE: [freetds] Running FreeTDS under VMS)
- Date: Sat, 3 May 2003 17:51:47 -0500
At 3:03 PM -0400 5/1/03, Lowden, James K wrote:
> > what is the purpose of emul_little_endian ?
>> That should be only applicable to the client side, shouldn't?
>> Anyway, I had to leave it to 0 with this kind of code:
>>
>> #ifdef WORDS_BIGENDIAN
>> if (IS_TDS7_PLUS(tds)) {
>> #ifndef VMS
>> /* TDS 7/8 only supports little endian */
>> tds->emul_little_endian = 1;
>> #endif
>> }
>> #endif
>
>See how WORDS_BIGENDIAN is defined and make sure it's 0 for VMS. On unixy
>systems, the configure script sets it based on system interrogation. It
>would be well to note this in the VMS readme.
WORDS_BIGENDIAN is currently hard-wired to undef on VMS in our config.h, so
it's hard to see how the code above could have been visible to the compiler
unless there is some other place it gets defined when found undefined.
Grepping the sources shows that in many cases #ifdef and #ifndef are used to
check this macro, but in other cases #if is used. If we define it to 0,
obviously only the latter cases will work as expected.
--
________________________________________
Craig A. Berry
mailto:craigberry AT mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
-
[freetds] Running FreeTDS under VMS,
Bernard Giroud, 05/01/2003
- Re: [freetds] Running FreeTDS under VMS, Craig A. Berry, 05/01/2003
- <Possible follow-up(s)>
- RE: [freetds] Running FreeTDS under VMS, Lowden, James K, 05/01/2003
- Re: [freetds] Running FreeTDS under VMS, Bernard Giroud, 05/01/2003
-
RE: [freetds] Running FreeTDS under VMS,
Lowden, James K, 05/01/2003
- RE: [freetds] Running FreeTDS under VMS, Craig A. Berry, 05/01/2003
-
RE: [freetds] Running FreeTDS under VMS,
Lowden, James K, 05/01/2003
-
WORDS_BIGENDIAN (was RE: [freetds] Running FreeTDS under VMS),
Craig A. Berry, 05/03/2003
-
Re: WORDS_BIGENDIAN (was RE: [freetds] Running FreeTDS under VMS),
James K. Lowden, 05/04/2003
- Re: WORDS_BIGENDIAN (was RE: [freetds] Running FreeTDS under VMS), Craig A. Berry, 05/04/2003
-
Re: WORDS_BIGENDIAN (was RE: [freetds] Running FreeTDS under VMS),
James K. Lowden, 05/04/2003
-
WORDS_BIGENDIAN (was RE: [freetds] Running FreeTDS under VMS),
Craig A. Berry, 05/03/2003
-
RE: [freetds] Running FreeTDS under VMS,
Lowden, James K, 05/01/2003
-
RE: [freetds] Running FreeTDS under VMS,
Craig A. Berry, 05/02/2003
- Re: [freetds] Running FreeTDS under VMS, James K. Lowden, 05/02/2003
-
RE: [freetds] Running FreeTDS under VMS,
Craig A. Berry, 05/02/2003
Archive powered by MHonArc 2.6.24.