cvs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cvs-dev] Re: Build CVS (TRUNK) failed messages


From: Jim Hyslop
Subject: Re: [Cvs-dev] Re: Build CVS (TRUNK) failed messages
Date: Thu, 25 May 2006 22:28:58 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I wrote:
> strtol.c has this snippet of code:
> 
> #ifdef QUAD
> # define LONG long long
> 
> MSVC6 (which predates C99 by a long shot) doesn't understand "long
> long". Is it OK to change "long long" to "int64_t" in the GNULIB files?

Answering the first question myself here: actually, it's more
complicated than that.

The problem boils down to this sequence of statements:

#define INT unsigned LONG int
#define LONG long long

INT
INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr,
                   int base, int group LOCALE_PARAM_PROTO)

INT ends up defined as "unsigned long long int", so I can't just change
"long long" to "int_64" or I end up with "unsigned int_64 int" which
makes the compiler barf.

Any thoughts on how to approach this?

- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEdmfqLdDyDwyJw+MRAu45AKCjxf8QFplihbTi2UDVSe+D4+I55gCghn+e
yvme2y49Vv2oT3/C71+fRS8=
=WGdW
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]