Show More
@@ -13,6 +13,14 b'' | |||||
13 | #include "charencode.h" |
|
13 | #include "charencode.h" | |
14 | #include "util.h" |
|
14 | #include "util.h" | |
15 |
|
15 | |||
|
16 | #ifdef IS_PY3K | |||
|
17 | /* The mapping of Python types is meant to be temporary to get Python | |||
|
18 | * 3 to compile. We should remove this once Python 3 support is fully | |||
|
19 | * supported and proper types are used in the extensions themselves. */ | |||
|
20 | #define PyInt_Type PyLong_Type | |||
|
21 | #define PyInt_AS_LONG PyLong_AS_LONG | |||
|
22 | #endif | |||
|
23 | ||||
16 | static const char lowertable[128] = { |
|
24 | static const char lowertable[128] = { | |
17 | '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', |
|
25 | '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', | |
18 | '\x08', '\x09', '\x0a', '\x0b', '\x0c', '\x0d', '\x0e', '\x0f', |
|
26 | '\x08', '\x09', '\x0a', '\x0b', '\x0c', '\x0d', '\x0e', '\x0f', |
@@ -20,11 +20,9 b'' | |||||
20 | /* The mapping of Python types is meant to be temporary to get Python |
|
20 | /* The mapping of Python types is meant to be temporary to get Python | |
21 | * 3 to compile. We should remove this once Python 3 support is fully |
|
21 | * 3 to compile. We should remove this once Python 3 support is fully | |
22 | * supported and proper types are used in the extensions themselves. */ |
|
22 | * supported and proper types are used in the extensions themselves. */ | |
23 | #define PyInt_Type PyLong_Type |
|
|||
24 | #define PyInt_Check PyLong_Check |
|
23 | #define PyInt_Check PyLong_Check | |
25 | #define PyInt_FromLong PyLong_FromLong |
|
24 | #define PyInt_FromLong PyLong_FromLong | |
26 | #define PyInt_FromSsize_t PyLong_FromSsize_t |
|
25 | #define PyInt_FromSsize_t PyLong_FromSsize_t | |
27 | #define PyInt_AS_LONG PyLong_AS_LONG |
|
|||
28 | #define PyInt_AsLong PyLong_AsLong |
|
26 | #define PyInt_AsLong PyLong_AsLong | |
29 | #endif |
|
27 | #endif | |
30 |
|
28 |
General Comments 0
You need to be logged in to leave comments.
Login now