equal
deleted
inserted
replaced
10 #include <Python.h> |
10 #include <Python.h> |
11 #include <ctype.h> |
11 #include <ctype.h> |
12 #include <stddef.h> |
12 #include <stddef.h> |
13 #include <string.h> |
13 #include <string.h> |
14 |
14 |
|
15 #include "charencode.h" |
15 #include "util.h" |
16 #include "util.h" |
16 #include "bitmanipulation.h" |
17 #include "bitmanipulation.h" |
17 |
18 |
18 #ifdef IS_PY3K |
19 #ifdef IS_PY3K |
19 /* 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 |
26 #define PyInt_AS_LONG PyLong_AS_LONG |
27 #define PyInt_AS_LONG PyLong_AS_LONG |
27 #define PyInt_AsLong PyLong_AsLong |
28 #define PyInt_AsLong PyLong_AsLong |
28 #endif |
29 #endif |
29 |
30 |
30 static const char *const versionerrortext = "Python minor version mismatch"; |
31 static const char *const versionerrortext = "Python minor version mismatch"; |
31 |
|
32 /* defined in charencode.c */ |
|
33 PyObject *unhexlify(const char *str, int len); |
|
34 PyObject *asciilower(PyObject *self, PyObject *args); |
|
35 PyObject *asciiupper(PyObject *self, PyObject *args); |
|
36 PyObject *make_file_foldmap(PyObject *self, PyObject *args); |
|
37 |
32 |
38 static PyObject *dict_new_presized(PyObject *self, PyObject *args) |
33 static PyObject *dict_new_presized(PyObject *self, PyObject *args) |
39 { |
34 { |
40 Py_ssize_t expected_size; |
35 Py_ssize_t expected_size; |
41 |
36 |