[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggestions: mpz_export and version testing
From: |
Kevin Ryde |
Subject: |
Re: Suggestions: mpz_export and version testing |
Date: |
Sat, 22 Nov 2003 09:25:15 +1000 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Jack Lloyd <address@hidden> writes:
>
> It would be nice if GNU MP would check if COUNT was NULL,
> and not write to it in that case.
Sounds fair, I'll make that change for the next release.
> #define __GNU_MP_VERSION_CODE ((__GNU_MP_VERSION << 16) | \
> (__GNU_MP_VERSION_MINOR << 8) | \
> (__GNU_MP_VERSION_PATCHLEVEL))
>
> #define __GNU_MP_VERSION_CODE_FOR(a,b,c) ((a << 16) | (b << 8) | (c))
Hmm. For now I think we'll leave that to applications to do
themselves if desired.
> #if __GNU_MP_VERSION_CODE < __GNU_MP_VERSION_CODE_FOR(4,1,0)
You could also make something like __GNUC_PREREQ from glibc features.h
(which we do similarly in gmp.h too).
--
All followups to address@hidden only please.