equal
deleted
inserted
replaced
9 #define _HG_UTIL_H_ |
9 #define _HG_UTIL_H_ |
10 |
10 |
11 #include "compat.h" |
11 #include "compat.h" |
12 |
12 |
13 #if PY_MAJOR_VERSION >= 3 |
13 #if PY_MAJOR_VERSION >= 3 |
14 |
|
15 #define IS_PY3K |
14 #define IS_PY3K |
16 /* The mapping of Python types is meant to be temporary to get Python |
15 #endif |
17 * 3 to compile. We should remove this once Python 3 support is fully |
|
18 * supported and proper types are used in the extensions themselves. */ |
|
19 #define PyInt_Type PyLong_Type |
|
20 #define PyInt_FromLong PyLong_FromLong |
|
21 #define PyInt_AsLong PyLong_AsLong |
|
22 |
|
23 #endif /* PY_MAJOR_VERSION */ |
|
24 |
16 |
25 typedef struct { |
17 typedef struct { |
26 PyObject_HEAD |
18 PyObject_HEAD |
27 char state; |
19 char state; |
28 int mode; |
20 int mode; |