[Python-checkins] cpython (merge 3.4 -> default): Merge 3.4.

stefan.krah python-checkins at python.org
Tue Aug 26 21:33:00 CEST 2014


http://hg.python.org/cpython/rev/0337a460f05b
changeset:   92246:0337a460f05b
parent:      92243:df517dafea5b
parent:      92245:7fbb912c0789
user:        Stefan Krah <skrah at bytereef.org>
date:        Tue Aug 26 21:32:26 2014 +0200
summary:
  Merge 3.4.

files:
  Lib/decimal.py                        |  2 +-
  Modules/_decimal/_decimal.c           |  4 ++--
  Modules/_decimal/libmpdec/mpdecimal.h |  8 ++++++--
  3 files changed, 9 insertions(+), 5 deletions(-)


diff --git a/Lib/decimal.py b/Lib/decimal.py
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -140,7 +140,7 @@
 
 __version__ = '1.70'    # Highest version of the spec this complies with
                         # See http://speleotrove.com/decimal/
-__libmpdec_version__ = "2.4.0" # compatible libmpdec version
+__libmpdec_version__ = "2.4.1" # compatible libmpdec version
 
 import math as _math
 import numbers as _numbers
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -39,8 +39,8 @@
 #include "memory.h"
 
 
-#if MPD_MAJOR_VERSION != 2
-  #error "libmpdec major version 2 required"
+#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02040100
+  #error "libmpdec version >= 2.4.1 required"
 #endif
 
 
diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h
--- a/Modules/_decimal/libmpdec/mpdecimal.h
+++ b/Modules/_decimal/libmpdec/mpdecimal.h
@@ -108,9 +108,13 @@
 
 #define MPD_MAJOR_VERSION 2
 #define MPD_MINOR_VERSION 4
-#define MPD_MICRO_VERSION 0
+#define MPD_MICRO_VERSION 1
 
-#define MPD_VERSION "2.4.0"
+#define MPD_VERSION "2.4.1"
+
+#define MPD_VERSION_HEX ((MPD_MAJOR_VERSION << 24) | \
+                         (MPD_MINOR_VERSION << 16) | \
+                         (MPD_MICRO_VERSION <<  8))
 
 const char *mpd_version(void);
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list