Show More
@@ -15,14 +15,6 b'' | |||||
15 | #include "compat.h" |
|
15 | #include "compat.h" | |
16 | #include "util.h" |
|
16 | #include "util.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_AS_LONG PyLong_AS_LONG |
|
|||
24 | #endif |
|
|||
25 |
|
||||
26 | /* clang-format off */ |
|
18 | /* clang-format off */ | |
27 | static const char lowertable[128] = { |
|
19 | static const char lowertable[128] = { | |
28 | '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', |
|
20 | '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', | |
@@ -228,12 +220,12 b' PyObject *make_file_foldmap(PyObject *se' | |||||
228 | const char *table; |
|
220 | const char *table; | |
229 |
|
221 | |||
230 | if (!PyArg_ParseTuple(args, "O!O!O!:make_file_foldmap", &PyDict_Type, |
|
222 | if (!PyArg_ParseTuple(args, "O!O!O!:make_file_foldmap", &PyDict_Type, | |
231 |
&dmap, &Py |
|
223 | &dmap, &PyLong_Type, &spec_obj, &PyFunction_Type, | |
232 | &normcase_fallback)) { |
|
224 | &normcase_fallback)) { | |
233 | goto quit; |
|
225 | goto quit; | |
234 | } |
|
226 | } | |
235 |
|
227 | |||
236 |
spec = (int)Py |
|
228 | spec = (int)PyLong_AS_LONG(spec_obj); | |
237 | switch (spec) { |
|
229 | switch (spec) { | |
238 | case NORMCASE_LOWER: |
|
230 | case NORMCASE_LOWER: | |
239 | table = lowertable; |
|
231 | table = lowertable; |
General Comments 0
You need to be logged in to leave comments.
Login now