Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2eb6b0d1
Commit
2eb6b0d1
authored
Apr 14, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issues #26716, #26057: Regenerate Argument Clinic code.
parents
0fe7978c
d6117a42
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
34 deletions
+34
-34
Modules/_codecsmodule.c
Modules/_codecsmodule.c
+15
-15
Modules/clinic/_codecsmodule.c.h
Modules/clinic/_codecsmodule.c.h
+16
-16
Modules/clinic/fcntlmodule.c.h
Modules/clinic/fcntlmodule.c.h
+2
-2
Modules/fcntlmodule.c
Modules/fcntlmodule.c
+1
-1
No files found.
Modules/_codecsmodule.c
View file @
2eb6b0d1
...
...
@@ -722,7 +722,7 @@ _codecs.utf_7_encode
static
PyObject
*
_codecs_utf_7_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -738,7 +738,7 @@ _codecs.utf_8_encode
static
PyObject
*
_codecs_utf_8_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -762,7 +762,7 @@ _codecs.utf_16_encode
static
PyObject
*
_codecs_utf_16_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -778,7 +778,7 @@ _codecs.utf_16_le_encode
static
PyObject
*
_codecs_utf_16_le_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -794,7 +794,7 @@ _codecs.utf_16_be_encode
static
PyObject
*
_codecs_utf_16_be_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -818,7 +818,7 @@ _codecs.utf_32_encode
static
PyObject
*
_codecs_utf_32_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -834,7 +834,7 @@ _codecs.utf_32_le_encode
static
PyObject
*
_codecs_utf_32_le_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -850,7 +850,7 @@ _codecs.utf_32_be_encode
static
PyObject
*
_codecs_utf_32_be_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -866,7 +866,7 @@ _codecs.unicode_escape_encode
static
PyObject
*
_codecs_unicode_escape_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -882,7 +882,7 @@ _codecs.raw_unicode_escape_encode
static
PyObject
*
_codecs_raw_unicode_escape_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -898,7 +898,7 @@ _codecs.latin_1_encode
static
PyObject
*
_codecs_latin_1_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -914,7 +914,7 @@ _codecs.ascii_encode
static
PyObject
*
_codecs_ascii_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -931,7 +931,7 @@ _codecs.charmap_encode
static
PyObject
*
_codecs_charmap_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
)
mapping
=
NULL
;
...
...
@@ -965,7 +965,7 @@ _codecs.mbcs_encode
static
PyObject
*
_codecs_mbcs_encode_impl
(
PyModuleDef
*
module
,
PyObject
*
str
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
@@ -982,7 +982,7 @@ _codecs.code_page_encode
static
PyObject
*
_codecs_code_page_encode_impl
(
PyModuleDef
*
module
,
int
code_page
,
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
),
PyUnicode_GET_LENGTH
(
str
));
...
...
Modules/clinic/_codecsmodule.c.h
View file @
2eb6b0d1
...
...
@@ -878,7 +878,7 @@ _codecs_utf_7_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_7_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_7_encode"
,
&
str
,
&
errors
))
goto
exit
;
return_value
=
_codecs_utf_7_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -906,7 +906,7 @@ _codecs_utf_8_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:utf_8_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:utf_8_encode"
,
&
str
,
&
errors
))
goto
exit
;
return_value
=
_codecs_utf_8_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -935,7 +935,7 @@ _codecs_utf_16_encode(PyModuleDef *module, PyObject *args)
const
char
*
errors
=
NULL
;
int
byteorder
=
0
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|zi:utf_16_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|zi:utf_16_encode"
,
&
str
,
&
errors
,
&
byteorder
))
goto
exit
;
return_value
=
_codecs_utf_16_encode_impl
(
module
,
str
,
errors
,
byteorder
);
...
...
@@ -963,7 +963,7 @@ _codecs_utf_16_le_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
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
))
goto
exit
;
return_value
=
_codecs_utf_16_le_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -991,7 +991,7 @@ _codecs_utf_16_be_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
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
))
goto
exit
;
return_value
=
_codecs_utf_16_be_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1020,7 +1020,7 @@ _codecs_utf_32_encode(PyModuleDef *module, PyObject *args)
const
char
*
errors
=
NULL
;
int
byteorder
=
0
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|zi:utf_32_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|zi:utf_32_encode"
,
&
str
,
&
errors
,
&
byteorder
))
goto
exit
;
return_value
=
_codecs_utf_32_encode_impl
(
module
,
str
,
errors
,
byteorder
);
...
...
@@ -1048,7 +1048,7 @@ _codecs_utf_32_le_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
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
))
goto
exit
;
return_value
=
_codecs_utf_32_le_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1076,7 +1076,7 @@ _codecs_utf_32_be_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
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
))
goto
exit
;
return_value
=
_codecs_utf_32_be_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1104,7 +1104,7 @@ _codecs_unicode_escape_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:unicode_escape_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:unicode_escape_encode"
,
&
str
,
&
errors
))
goto
exit
;
return_value
=
_codecs_unicode_escape_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1132,7 +1132,7 @@ _codecs_raw_unicode_escape_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
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
))
goto
exit
;
return_value
=
_codecs_raw_unicode_escape_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1160,7 +1160,7 @@ _codecs_latin_1_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:latin_1_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:latin_1_encode"
,
&
str
,
&
errors
))
goto
exit
;
return_value
=
_codecs_latin_1_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1188,7 +1188,7 @@ _codecs_ascii_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:ascii_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:ascii_encode"
,
&
str
,
&
errors
))
goto
exit
;
return_value
=
_codecs_ascii_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1217,7 +1217,7 @@ _codecs_charmap_encode(PyModuleDef *module, PyObject *args)
const
char
*
errors
=
NULL
;
PyObject
*
mapping
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|zO:charmap_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|zO:charmap_encode"
,
&
str
,
&
errors
,
&
mapping
))
goto
exit
;
return_value
=
_codecs_charmap_encode_impl
(
module
,
str
,
errors
,
mapping
);
...
...
@@ -1272,7 +1272,7 @@ _codecs_mbcs_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
const
char
*
errors
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"
O
|z:mbcs_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"
U
|z:mbcs_encode"
,
&
str
,
&
errors
))
goto
exit
;
return_value
=
_codecs_mbcs_encode_impl
(
module
,
str
,
errors
);
...
...
@@ -1305,7 +1305,7 @@ _codecs_code_page_encode(PyModuleDef *module, PyObject *args)
PyObject
*
str
;
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
))
goto
exit
;
return_value
=
_codecs_code_page_encode_impl
(
module
,
code_page
,
str
,
errors
);
...
...
@@ -1393,4 +1393,4 @@ exit:
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
#define _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
View file @
2eb6b0d1
...
...
@@ -145,7 +145,7 @@ PyDoc_STRVAR(fcntl_lockf__doc__,
"
\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 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
"
"system -- for portability, check for either value).
\n
"
"
\n
"
...
...
@@ -182,4 +182,4 @@ fcntl_lockf(PyModuleDef *module, PyObject *args)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
92963b631d00f0fe
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
b7d6e8fc2ad09c48
input=a9049054013a1b77]*/
Modules/fcntlmodule.c
View file @
2eb6b0d1
...
...
@@ -360,7 +360,7 @@ starts. `whence` is as with fileobj.seek(), specifically:
static
PyObject
*
fcntl_lockf_impl
(
PyModuleDef
*
module
,
int
fd
,
int
code
,
PyObject
*
lenobj
,
PyObject
*
startobj
,
int
whence
)
/*[clinic end generated code: output=31af35eba08b9af7 input=
9c594391de821f24
]*/
/*[clinic end generated code: output=31af35eba08b9af7 input=
3a5dc01b04371f1a
]*/
{
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