@@ -472,9 +472,10 @@ PyAPI_FUNC(PyObject*) PyUnicode_FromUnicodeT(
472
472
const Py_UNICODE * u , Py_ssize_t size , PyObject * taint );
473
473
474
474
/* Similar to PyUnicode_FromUnicode(), but u points to Latin-1 encoded bytes */
475
- PyAPI_FUNC (PyObject * ) PyUnicode_FromStringAndSize (
475
+ PyAPI_FUNC (PyObject * ) PyUnicode_FromStringAndSizeT (
476
476
const char * u , /* char buffer */
477
- Py_ssize_t size /* size of buffer */
477
+ Py_ssize_t size , /* size of buffer */
478
+ PyObject * taint
478
479
);
479
480
480
481
/* Similar to PyUnicode_FromUnicode(), but u points to null-terminated
@@ -679,6 +680,7 @@ PyAPI_FUNC(int) PyUnicode_SetDefaultEncoding(
679
680
PyAPI_FUNC (PyObject * ) PyUnicode_Decode (
680
681
const char * s , /* encoded string */
681
682
Py_ssize_t size , /* size of buffer */
683
+ PyObject * taint ,
682
684
const char * encoding , /* encoding */
683
685
const char * errors /* error handling */
684
686
);
@@ -689,6 +691,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_Decode(
689
691
PyAPI_FUNC (PyObject * ) PyUnicode_Encode (
690
692
const Py_UNICODE * s , /* Unicode char buffer */
691
693
Py_ssize_t size , /* number of Py_UNICODE chars to encode */
694
+ PyObject * taint ,
692
695
const char * encoding , /* encoding */
693
696
const char * errors /* error handling */
694
697
);
@@ -721,19 +724,22 @@ PyAPI_FUNC(PyObject*) PyUnicode_BuildEncodingMap(
721
724
PyAPI_FUNC (PyObject * ) PyUnicode_DecodeUTF7 (
722
725
const char * string , /* UTF-7 encoded string */
723
726
Py_ssize_t length , /* size of string */
727
+ PyObject * taint ,
724
728
const char * errors /* error handling */
725
729
);
726
730
727
731
PyAPI_FUNC (PyObject * ) PyUnicode_DecodeUTF7Stateful (
728
732
const char * string , /* UTF-7 encoded string */
729
733
Py_ssize_t length , /* size of string */
734
+ PyObject * taint ,
730
735
const char * errors , /* error handling */
731
736
Py_ssize_t * consumed /* bytes consumed */
732
737
);
733
738
734
739
PyAPI_FUNC (PyObject * ) PyUnicode_EncodeUTF7 (
735
740
const Py_UNICODE * data , /* Unicode char buffer */
736
741
Py_ssize_t length , /* number of Py_UNICODE chars to encode */
742
+ PyObject * taint ,
737
743
int encodeSetO , /* force the encoder to encode characters in
738
744
Set O, as described in RFC2152 */
739
745
int encodeWhiteSpace , /* force the encoder to encode space, tab,
@@ -974,6 +980,7 @@ PyObject *_PyUnicode_DecodeUnicodeInternal(
974
980
PyAPI_FUNC (PyObject * ) PyUnicode_DecodeLatin1 (
975
981
const char * string , /* Latin-1 encoded string */
976
982
Py_ssize_t length , /* size of string */
983
+ PyObject * taint ,
977
984
const char * errors /* error handling */
978
985
);
979
986
@@ -997,6 +1004,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeLatin1(
997
1004
PyAPI_FUNC (PyObject * ) PyUnicode_DecodeASCII (
998
1005
const char * string , /* ASCII encoded string */
999
1006
Py_ssize_t length , /* size of string */
1007
+ PyObject * taint ,
1000
1008
const char * errors /* error handling */
1001
1009
);
1002
1010
@@ -1036,6 +1044,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeASCII(
1036
1044
PyAPI_FUNC (PyObject * ) PyUnicode_DecodeCharmap (
1037
1045
const char * string , /* Encoded string */
1038
1046
Py_ssize_t length , /* size of string */
1047
+ PyObject * taint ,
1039
1048
PyObject * mapping , /* character mapping
1040
1049
(char ordinal -> unicode ordinal) */
1041
1050
const char * errors /* error handling */
@@ -1050,6 +1059,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_AsCharmapString(
1050
1059
PyAPI_FUNC (PyObject * ) PyUnicode_EncodeCharmap (
1051
1060
const Py_UNICODE * data , /* Unicode char buffer */
1052
1061
Py_ssize_t length , /* Number of Py_UNICODE chars to encode */
1062
+ PyObject * taint ,
1053
1063
PyObject * mapping , /* character mapping
1054
1064
(unicode ordinal -> char ordinal) */
1055
1065
const char * errors /* error handling */
@@ -1071,6 +1081,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeCharmap(
1071
1081
PyAPI_FUNC (PyObject * ) PyUnicode_TranslateCharmap (
1072
1082
const Py_UNICODE * data , /* Unicode char buffer */
1073
1083
Py_ssize_t length , /* Number of Py_UNICODE chars to encode */
1084
+ PyObject * taint ,
1074
1085
PyObject * table , /* Translate table */
1075
1086
const char * errors /* error handling */
1076
1087
);
0 commit comments