##// END OF EJS Templates
parsers: move PyInt aliasing out of util.h...
Gregory Szorc -
r30112:9b6ff0f9 default
parent child Browse files
Show More
@@ -15,6 +15,15 b''
15 #include "util.h"
15 #include "util.h"
16 #include "bitmanipulation.h"
16 #include "bitmanipulation.h"
17
17
18 #ifdef IS_PY3K
19 /* The mapping of Python types is meant to be temporary to get Python
20 * 3 to compile. We should remove this once Python 3 support is fully
21 * supported and proper types are used in the extensions themselves. */
22 #define PyInt_Type PyLong_Type
23 #define PyInt_FromLong PyLong_FromLong
24 #define PyInt_AsLong PyLong_AsLong
25 #endif
26
18 static char *versionerrortext = "Python minor version mismatch";
27 static char *versionerrortext = "Python minor version mismatch";
19
28
20 static int8_t hextable[256] = {
29 static int8_t hextable[256] = {
@@ -11,16 +11,8 b''
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
General Comments 0
You need to be logged in to leave comments. Login now