Show More
@@ -14,6 +14,47 b'' | |||||
14 | #define PyInt_FromLong PyLong_FromLong |
|
14 | #define PyInt_FromLong PyLong_FromLong | |
15 | #define PyInt_AsLong PyLong_AsLong |
|
15 | #define PyInt_AsLong PyLong_AsLong | |
16 |
|
16 | |||
|
17 | /* | |||
|
18 | Mapping of some of the python < 2.x PyString* functions to py3k's PyUnicode. | |||
|
19 | ||||
|
20 | The commented names below represent those that are present in the PyBytes | |||
|
21 | definitions for python < 2.6 (below in this file) that don't have a direct | |||
|
22 | implementation. | |||
|
23 | */ | |||
|
24 | ||||
|
25 | #define PyStringObject PyUnicodeObject | |||
|
26 | #define PyString_Type PyUnicode_Type | |||
|
27 | ||||
|
28 | #define PyString_Check PyUnicode_Check | |||
|
29 | #define PyString_CheckExact PyUnicode_CheckExact | |||
|
30 | #define PyString_CHECK_INTERNED PyUnicode_CHECK_INTERNED | |||
|
31 | #define PyString_AS_STRING PyUnicode_AsLatin1String | |||
|
32 | #define PyString_GET_SIZE PyUnicode_GET_SIZE | |||
|
33 | ||||
|
34 | #define PyString_FromStringAndSize PyUnicode_FromStringAndSize | |||
|
35 | #define PyString_FromString PyUnicode_FromString | |||
|
36 | #define PyString_FromFormatV PyUnicode_FromFormatV | |||
|
37 | #define PyString_FromFormat PyUnicode_FromFormat | |||
|
38 | /* #define PyString_Size PyUnicode_GET_SIZE */ | |||
|
39 | /* #define PyString_AsString */ | |||
|
40 | /* #define PyString_Repr */ | |||
|
41 | #define PyString_Concat PyUnicode_Concat | |||
|
42 | #define PyString_ConcatAndDel PyUnicode_AppendAndDel | |||
|
43 | #define _PyString_Resize PyUnicode_Resize | |||
|
44 | /* #define _PyString_Eq */ | |||
|
45 | #define PyString_Format PyUnicode_Format | |||
|
46 | /* #define _PyString_FormatLong */ | |||
|
47 | /* #define PyString_DecodeEscape */ | |||
|
48 | #define _PyString_Join PyUnicode_Join | |||
|
49 | #define PyString_Decode PyUnicode_Decode | |||
|
50 | #define PyString_Encode PyUnicode_Encode | |||
|
51 | #define PyString_AsEncodedObject PyUnicode_AsEncodedObject | |||
|
52 | #define PyString_AsEncodedString PyUnicode_AsEncodedString | |||
|
53 | #define PyString_AsDecodedObject PyUnicode_AsDecodedObject | |||
|
54 | #define PyString_AsDecodedString PyUnicode_AsDecodedUnicode | |||
|
55 | /* #define PyString_AsStringAndSize */ | |||
|
56 | #define _PyString_InsertThousandsGrouping _PyUnicode_InsertThousandsGrouping | |||
|
57 | ||||
17 | #endif /* PY_MAJOR_VERSION */ |
|
58 | #endif /* PY_MAJOR_VERSION */ | |
18 |
|
59 | |||
19 | /* Backports from 2.6 */ |
|
60 | /* Backports from 2.6 */ |
General Comments 0
You need to be logged in to leave comments.
Login now