Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2eb6b0d1
Kaydet (Commit)
2eb6b0d1
authored
Nis 14, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issues #26716, #26057: Regenerate Argument Clinic code.
üst
0fe7978c
d6117a42
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
34 deletions
+34
-34
_codecsmodule.c
Modules/_codecsmodule.c
+15
-15
_codecsmodule.c.h
Modules/clinic/_codecsmodule.c.h
+16
-16
fcntlmodule.c.h
Modules/clinic/fcntlmodule.c.h
+2
-2
fcntlmodule.c
Modules/fcntlmodule.c
+1
-1
No files found.
Modules/_codecsmodule.c
Dosyayı görüntüle @
2eb6b0d1
...
@@ -722,7 +722,7 @@ _codecs.utf_7_encode
...
@@ -722,7 +722,7 @@ _codecs.utf_7_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_7_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_7_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=a7accc496a32b759 input=
fd91a78f103b0421
]*/
/*[clinic end generated code: output=a7accc496a32b759 input=
d1a47579e79cbe15
]*/
{
{
return
codec_tuple
(
_PyUnicode_EncodeUTF7
(
str
,
0
,
0
,
errors
),
return
codec_tuple
(
_PyUnicode_EncodeUTF7
(
str
,
0
,
0
,
errors
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -738,7 +738,7 @@ _codecs.utf_8_encode
...
@@ -738,7 +738,7 @@ _codecs.utf_8_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_8_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_8_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=ec831d80e7aedede input=
2c22d40532f071f3
]*/
/*[clinic end generated code: output=ec831d80e7aedede input=
42e3ba73c4392eef
]*/
{
{
return
codec_tuple
(
_PyUnicode_AsUTF8String
(
str
,
errors
),
return
codec_tuple
(
_PyUnicode_AsUTF8String
(
str
,
errors
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -762,7 +762,7 @@ _codecs.utf_16_encode
...
@@ -762,7 +762,7 @@ _codecs.utf_16_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_16_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_16_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
,
int
byteorder
)
const
char
*
errors
,
int
byteorder
)
/*[clinic end generated code: output=93ac58e960a9ee4d input=
3935a489b2d5385e
]*/
/*[clinic end generated code: output=93ac58e960a9ee4d input=
ff46416b04edb944
]*/
{
{
return
codec_tuple
(
_PyUnicode_EncodeUTF16
(
str
,
errors
,
byteorder
),
return
codec_tuple
(
_PyUnicode_EncodeUTF16
(
str
,
errors
,
byteorder
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -778,7 +778,7 @@ _codecs.utf_16_le_encode
...
@@ -778,7 +778,7 @@ _codecs.utf_16_le_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_16_le_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_16_le_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=422bedb8da34fb66 input=
bc27df05d1d20dfe
]*/
/*[clinic end generated code: output=422bedb8da34fb66 input=
cb385455ea8f2fe0
]*/
{
{
return
codec_tuple
(
_PyUnicode_EncodeUTF16
(
str
,
errors
,
-
1
),
return
codec_tuple
(
_PyUnicode_EncodeUTF16
(
str
,
errors
,
-
1
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -794,7 +794,7 @@ _codecs.utf_16_be_encode
...
@@ -794,7 +794,7 @@ _codecs.utf_16_be_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_16_be_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_16_be_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=3aa7ee9502acdd77 input=
5a69d4112763462b
]*/
/*[clinic end generated code: output=3aa7ee9502acdd77 input=
9119997066bdaefd
]*/
{
{
return
codec_tuple
(
_PyUnicode_EncodeUTF16
(
str
,
errors
,
+
1
),
return
codec_tuple
(
_PyUnicode_EncodeUTF16
(
str
,
errors
,
+
1
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -818,7 +818,7 @@ _codecs.utf_32_encode
...
@@ -818,7 +818,7 @@ _codecs.utf_32_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_32_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_32_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
,
int
byteorder
)
const
char
*
errors
,
int
byteorder
)
/*[clinic end generated code: output=3e7d5a003b02baed input=
434a1efa492b8d58
]*/
/*[clinic end generated code: output=3e7d5a003b02baed input=
c5e77da82fbe5c2a
]*/
{
{
return
codec_tuple
(
_PyUnicode_EncodeUTF32
(
str
,
errors
,
byteorder
),
return
codec_tuple
(
_PyUnicode_EncodeUTF32
(
str
,
errors
,
byteorder
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -834,7 +834,7 @@ _codecs.utf_32_le_encode
...
@@ -834,7 +834,7 @@ _codecs.utf_32_le_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_32_le_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_32_le_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=5dda641cd33dbfc2 input=
dfa2d7dc78b99422
]*/
/*[clinic end generated code: output=5dda641cd33dbfc2 input=
9993b25fe0877848
]*/
{
{
return
codec_tuple
(
_PyUnicode_EncodeUTF32
(
str
,
errors
,
-
1
),
return
codec_tuple
(
_PyUnicode_EncodeUTF32
(
str
,
errors
,
-
1
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -850,7 +850,7 @@ _codecs.utf_32_be_encode
...
@@ -850,7 +850,7 @@ _codecs.utf_32_be_encode
static
PyObject
*
static
PyObject
*
_codecs_utf_32_be_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_utf_32_be_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=ccca8b44d91a7c7a input=
4595617b18169002
]*/
/*[clinic end generated code: output=ccca8b44d91a7c7a input=
d3e0ccaa02920431
]*/
{
{
return
codec_tuple
(
_PyUnicode_EncodeUTF32
(
str
,
errors
,
+
1
),
return
codec_tuple
(
_PyUnicode_EncodeUTF32
(
str
,
errors
,
+
1
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -866,7 +866,7 @@ _codecs.unicode_escape_encode
...
@@ -866,7 +866,7 @@ _codecs.unicode_escape_encode
static
PyObject
*
static
PyObject
*
_codecs_unicode_escape_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_unicode_escape_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=389f23d2b8f8d80b input=
8273506f14076912
]*/
/*[clinic end generated code: output=389f23d2b8f8d80b input=
65d9eefca65b455a
]*/
{
{
return
codec_tuple
(
PyUnicode_AsUnicodeEscapeString
(
str
),
return
codec_tuple
(
PyUnicode_AsUnicodeEscapeString
(
str
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -882,7 +882,7 @@ _codecs.raw_unicode_escape_encode
...
@@ -882,7 +882,7 @@ _codecs.raw_unicode_escape_encode
static
PyObject
*
static
PyObject
*
_codecs_raw_unicode_escape_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_raw_unicode_escape_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=fec4e39d6ec37a62 input=
181755d5dfacef3c
]*/
/*[clinic end generated code: output=fec4e39d6ec37a62 input=
5aa33e4a133391ab
]*/
{
{
return
codec_tuple
(
PyUnicode_AsRawUnicodeEscapeString
(
str
),
return
codec_tuple
(
PyUnicode_AsRawUnicodeEscapeString
(
str
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -898,7 +898,7 @@ _codecs.latin_1_encode
...
@@ -898,7 +898,7 @@ _codecs.latin_1_encode
static
PyObject
*
static
PyObject
*
_codecs_latin_1_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_latin_1_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=ecf00eb8e48c889c input=
f03f6dcf1d84bee4
]*/
/*[clinic end generated code: output=ecf00eb8e48c889c input=
30b11c9e49a65150
]*/
{
{
return
codec_tuple
(
_PyUnicode_AsLatin1String
(
str
,
errors
),
return
codec_tuple
(
_PyUnicode_AsLatin1String
(
str
,
errors
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -914,7 +914,7 @@ _codecs.ascii_encode
...
@@ -914,7 +914,7 @@ _codecs.ascii_encode
static
PyObject
*
static
PyObject
*
_codecs_ascii_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_ascii_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=a9d18fc6b6b91cfb input=
d87e25a10a593fe
e]*/
/*[clinic end generated code: output=a9d18fc6b6b91cfb input=
843a1d268e6dfa8
e]*/
{
{
return
codec_tuple
(
_PyUnicode_AsASCIIString
(
str
,
errors
),
return
codec_tuple
(
_PyUnicode_AsASCIIString
(
str
,
errors
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -931,7 +931,7 @@ _codecs.charmap_encode
...
@@ -931,7 +931,7 @@ _codecs.charmap_encode
static
PyObject
*
static
PyObject
*
_codecs_charmap_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_charmap_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
,
PyObject
*
mapping
)
const
char
*
errors
,
PyObject
*
mapping
)
/*[clinic end generated code: output=14ca42b83853c643 input=
85f4172661e8dad9
]*/
/*[clinic end generated code: output=14ca42b83853c643 input=
0752cde07a6d6d00
]*/
{
{
if
(
mapping
==
Py_None
)
if
(
mapping
==
Py_None
)
mapping
=
NULL
;
mapping
=
NULL
;
...
@@ -965,7 +965,7 @@ _codecs.mbcs_encode
...
@@ -965,7 +965,7 @@ _codecs.mbcs_encode
static
PyObject
*
static
PyObject
*
_codecs_mbcs_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
_codecs_mbcs_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
const
char
*
errors
)
const
char
*
errors
)
/*[clinic end generated code: output=d1a013bc68798bd7 input=
65c09ee1e420326
3]*/
/*[clinic end generated code: output=d1a013bc68798bd7 input=
de471e081594755
3]*/
{
{
return
codec_tuple
(
PyUnicode_EncodeCodePage
(
CP_ACP
,
str
,
errors
),
return
codec_tuple
(
PyUnicode_EncodeCodePage
(
CP_ACP
,
str
,
errors
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
@@ -982,7 +982,7 @@ _codecs.code_page_encode
...
@@ -982,7 +982,7 @@ _codecs.code_page_encode
static
PyObject
*
static
PyObject
*
_codecs_code_page_encode_impl
(
PyModuleDef
*
module
,
int
code_page
,
_codecs_code_page_encode_impl
(
PyModuleDef
*
module
,
int
code_page
,
PyObject
*
str
,
const
char
*
errors
)
PyObject
*
str
,
const
char
*
errors
)
/*[clinic end generated code: output=3b406618dbfbce25 input=
c8562ec460c2e309
]*/
/*[clinic end generated code: output=3b406618dbfbce25 input=
786421ae617d680b
]*/
{
{
return
codec_tuple
(
PyUnicode_EncodeCodePage
(
code_page
,
str
,
errors
),
return
codec_tuple
(
PyUnicode_EncodeCodePage
(
code_page
,
str
,
errors
),
PyUnicode_GET_LENGTH
(
str
));
PyUnicode_GET_LENGTH
(
str
));
...
...
Modules/clinic/_codecsmodule.c.h
Dosyayı görüntüle @
2eb6b0d1
...
@@ -878,7 +878,7 @@ _codecs_utf_7_encode(PyModuleDef *module, PyObject *args)
...
@@ -878,7 +878,7 @@ _codecs_utf_7_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_7_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_7_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_7_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_utf_7_encode_impl
(
module
,
str
,
errors
);
...
@@ -906,7 +906,7 @@ _codecs_utf_8_encode(PyModuleDef *module, PyObject *args)
...
@@ -906,7 +906,7 @@ _codecs_utf_8_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_8_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_8_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_8_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_utf_8_encode_impl
(
module
,
str
,
errors
);
...
@@ -935,7 +935,7 @@ _codecs_utf_16_encode(PyModuleDef *module, PyObject *args)
...
@@ -935,7 +935,7 @@ _codecs_utf_16_encode(PyModuleDef *module, PyObject *args)
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
int
byteorder
=
0
;
int
byteorder
=
0
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|zi:utf_16_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|zi:utf_16_encode"
,
&
str
,
&
errors
,
&
byteorder
))
&
str
,
&
errors
,
&
byteorder
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_16_encode_impl
(
module
,
str
,
errors
,
byteorder
);
return_value
=
_codecs_utf_16_encode_impl
(
module
,
str
,
errors
,
byteorder
);
...
@@ -963,7 +963,7 @@ _codecs_utf_16_le_encode(PyModuleDef *module, PyObject *args)
...
@@ -963,7 +963,7 @@ _codecs_utf_16_le_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_16_le_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_16_le_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_16_le_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_utf_16_le_encode_impl
(
module
,
str
,
errors
);
...
@@ -991,7 +991,7 @@ _codecs_utf_16_be_encode(PyModuleDef *module, PyObject *args)
...
@@ -991,7 +991,7 @@ _codecs_utf_16_be_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_16_be_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_16_be_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_16_be_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_utf_16_be_encode_impl
(
module
,
str
,
errors
);
...
@@ -1020,7 +1020,7 @@ _codecs_utf_32_encode(PyModuleDef *module, PyObject *args)
...
@@ -1020,7 +1020,7 @@ _codecs_utf_32_encode(PyModuleDef *module, PyObject *args)
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
int
byteorder
=
0
;
int
byteorder
=
0
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|zi:utf_32_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|zi:utf_32_encode"
,
&
str
,
&
errors
,
&
byteorder
))
&
str
,
&
errors
,
&
byteorder
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_32_encode_impl
(
module
,
str
,
errors
,
byteorder
);
return_value
=
_codecs_utf_32_encode_impl
(
module
,
str
,
errors
,
byteorder
);
...
@@ -1048,7 +1048,7 @@ _codecs_utf_32_le_encode(PyModuleDef *module, PyObject *args)
...
@@ -1048,7 +1048,7 @@ _codecs_utf_32_le_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_32_le_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_32_le_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_32_le_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_utf_32_le_encode_impl
(
module
,
str
,
errors
);
...
@@ -1076,7 +1076,7 @@ _codecs_utf_32_be_encode(PyModuleDef *module, PyObject *args)
...
@@ -1076,7 +1076,7 @@ _codecs_utf_32_be_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_32_be_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_32_be_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_utf_32_be_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_utf_32_be_encode_impl
(
module
,
str
,
errors
);
...
@@ -1104,7 +1104,7 @@ _codecs_unicode_escape_encode(PyModuleDef *module, PyObject *args)
...
@@ -1104,7 +1104,7 @@ _codecs_unicode_escape_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:unicode_escape_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:unicode_escape_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_unicode_escape_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_unicode_escape_encode_impl
(
module
,
str
,
errors
);
...
@@ -1132,7 +1132,7 @@ _codecs_raw_unicode_escape_encode(PyModuleDef *module, PyObject *args)
...
@@ -1132,7 +1132,7 @@ _codecs_raw_unicode_escape_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:raw_unicode_escape_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:raw_unicode_escape_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_raw_unicode_escape_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_raw_unicode_escape_encode_impl
(
module
,
str
,
errors
);
...
@@ -1160,7 +1160,7 @@ _codecs_latin_1_encode(PyModuleDef *module, PyObject *args)
...
@@ -1160,7 +1160,7 @@ _codecs_latin_1_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:latin_1_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:latin_1_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_latin_1_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_latin_1_encode_impl
(
module
,
str
,
errors
);
...
@@ -1188,7 +1188,7 @@ _codecs_ascii_encode(PyModuleDef *module, PyObject *args)
...
@@ -1188,7 +1188,7 @@ _codecs_ascii_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:ascii_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:ascii_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_ascii_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_ascii_encode_impl
(
module
,
str
,
errors
);
...
@@ -1217,7 +1217,7 @@ _codecs_charmap_encode(PyModuleDef *module, PyObject *args)
...
@@ -1217,7 +1217,7 @@ _codecs_charmap_encode(PyModuleDef *module, PyObject *args)
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
PyObject
*
mapping
=
NULL
;
PyObject
*
mapping
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|zO:charmap_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|zO:charmap_encode"
,
&
str
,
&
errors
,
&
mapping
))
&
str
,
&
errors
,
&
mapping
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_charmap_encode_impl
(
module
,
str
,
errors
,
mapping
);
return_value
=
_codecs_charmap_encode_impl
(
module
,
str
,
errors
,
mapping
);
...
@@ -1272,7 +1272,7 @@ _codecs_mbcs_encode(PyModuleDef *module, PyObject *args)
...
@@ -1272,7 +1272,7 @@ _codecs_mbcs_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:mbcs_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:mbcs_encode"
,
&
str
,
&
errors
))
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_mbcs_encode_impl
(
module
,
str
,
errors
);
return_value
=
_codecs_mbcs_encode_impl
(
module
,
str
,
errors
);
...
@@ -1305,7 +1305,7 @@ _codecs_code_page_encode(PyModuleDef *module, PyObject *args)
...
@@ -1305,7 +1305,7 @@ _codecs_code_page_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"i
O
|z:code_page_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"i
U
|z:code_page_encode"
,
&
code_page
,
&
str
,
&
errors
))
&
code_page
,
&
str
,
&
errors
))
goto
exit
;
goto
exit
;
return_value
=
_codecs_code_page_encode_impl
(
module
,
code_page
,
str
,
errors
);
return_value
=
_codecs_code_page_encode_impl
(
module
,
code_page
,
str
,
errors
);
...
@@ -1393,4 +1393,4 @@ exit:
...
@@ -1393,4 +1393,4 @@ exit:
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
#endif
/* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
#endif
/* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
/*[clinic end generated code: output=
9c9967048027c1c7
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
04007a13c8387689
input=a9049054013a1b77]*/
Modules/clinic/fcntlmodule.c.h
Dosyayı görüntüle @
2eb6b0d1
...
@@ -145,7 +145,7 @@ PyDoc_STRVAR(fcntl_lockf__doc__,
...
@@ -145,7 +145,7 @@ PyDoc_STRVAR(fcntl_lockf__doc__,
"
\n
"
"
\n
"
"When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with
\n
"
"When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with
\n
"
"LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the
\n
"
"LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the
\n
"
"lock cannot be acquired, an
IO
Error will be raised and the exception will
\n
"
"lock cannot be acquired, an
OS
Error will be raised and the exception will
\n
"
"have an errno attribute set to EACCES or EAGAIN (depending on the operating
\n
"
"have an errno attribute set to EACCES or EAGAIN (depending on the operating
\n
"
"system -- for portability, check for either value).
\n
"
"system -- for portability, check for either value).
\n
"
"
\n
"
"
\n
"
...
@@ -182,4 +182,4 @@ fcntl_lockf(PyModuleDef *module, PyObject *args)
...
@@ -182,4 +182,4 @@ fcntl_lockf(PyModuleDef *module, PyObject *args)
exit:
exit:
return
return_value
;
return
return_value
;
}
}
/*[clinic end generated code: output=
92963b631d00f0fe
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
b7d6e8fc2ad09c48
input=a9049054013a1b77]*/
Modules/fcntlmodule.c
Dosyayı görüntüle @
2eb6b0d1
...
@@ -360,7 +360,7 @@ starts. `whence` is as with fileobj.seek(), specifically:
...
@@ -360,7 +360,7 @@ starts. `whence` is as with fileobj.seek(), specifically:
static
PyObject
*
static
PyObject
*
fcntl_lockf_impl
(
PyModuleDef
*
module
,
int
fd
,
int
code
,
PyObject
*
lenobj
,
fcntl_lockf_impl
(
PyModuleDef
*
module
,
int
fd
,
int
code
,
PyObject
*
lenobj
,
PyObject
*
startobj
,
int
whence
)
PyObject
*
startobj
,
int
whence
)
/*[clinic end generated code: output=31af35eba08b9af7 input=
9c594391de821f24
]*/
/*[clinic end generated code: output=31af35eba08b9af7 input=
3a5dc01b04371f1a
]*/
{
{
int
ret
;
int
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment