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
37e4ef7b
Commit
37e4ef7b
authored
Sep 09, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27810: Rerun Argument Clinic on all modules
parent
f0ccbbbc
Changes
25
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
453 additions
and
452 deletions
+453
-452
Modules/clinic/_bz2module.c.h
Modules/clinic/_bz2module.c.h
+4
-4
Modules/clinic/_codecsmodule.c.h
Modules/clinic/_codecsmodule.c.h
+7
-7
Modules/clinic/_datetimemodule.c.h
Modules/clinic/_datetimemodule.c.h
+4
-4
Modules/clinic/_elementtree.c.h
Modules/clinic/_elementtree.c.h
+19
-19
Modules/clinic/_hashopenssl.c.h
Modules/clinic/_hashopenssl.c.h
+4
-4
Modules/clinic/_lzmamodule.c.h
Modules/clinic/_lzmamodule.c.h
+4
-4
Modules/clinic/_pickle.c.h
Modules/clinic/_pickle.c.h
+13
-13
Modules/clinic/_sre.c.h
Modules/clinic/_sre.c.h
+46
-46
Modules/clinic/_ssl.c.h
Modules/clinic/_ssl.c.h
+25
-25
Modules/clinic/_winapi.c.h
Modules/clinic/_winapi.c.h
+10
-10
Modules/clinic/binascii.c.h
Modules/clinic/binascii.c.h
+10
-10
Modules/clinic/cmathmodule.c.h
Modules/clinic/cmathmodule.c.h
+4
-4
Modules/clinic/grpmodule.c.h
Modules/clinic/grpmodule.c.h
+7
-7
Modules/clinic/md5module.c.h
Modules/clinic/md5module.c.h
+4
-4
Modules/clinic/posixmodule.c.h
Modules/clinic/posixmodule.c.h
+192
-191
Modules/clinic/pyexpat.c.h
Modules/clinic/pyexpat.c.h
+4
-4
Modules/clinic/sha1module.c.h
Modules/clinic/sha1module.c.h
+4
-4
Modules/clinic/sha256module.c.h
Modules/clinic/sha256module.c.h
+7
-7
Modules/clinic/sha512module.c.h
Modules/clinic/sha512module.c.h
+7
-7
Modules/clinic/zlibmodule.c.h
Modules/clinic/zlibmodule.c.h
+16
-16
Objects/clinic/bytearrayobject.c.h
Objects/clinic/bytearrayobject.c.h
+16
-16
Objects/clinic/bytesobject.c.h
Objects/clinic/bytesobject.c.h
+16
-16
PC/clinic/winreg.c.h
PC/clinic/winreg.c.h
+16
-16
PC/clinic/winsound.c.h
PC/clinic/winsound.c.h
+10
-10
Python/clinic/bltinmodule.c.h
Python/clinic/bltinmodule.c.h
+4
-4
No files found.
Modules/clinic/_bz2module.c.h
View file @
37e4ef7b
...
...
@@ -115,14 +115,14 @@ PyDoc_STRVAR(_bz2_BZ2Decompressor_decompress__doc__,
"the unused_data attribute."
);
#define _BZ2_BZ2DECOMPRESSOR_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_
VARARGS|METH_KEYWORDS
, _bz2_BZ2Decompressor_decompress__doc__},
{"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_
FASTCALL
, _bz2_BZ2Decompressor_decompress__doc__},
static
PyObject
*
_bz2_BZ2Decompressor_decompress_impl
(
BZ2Decompressor
*
self
,
Py_buffer
*
data
,
Py_ssize_t
max_length
);
static
PyObject
*
_bz2_BZ2Decompressor_decompress
(
BZ2Decompressor
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_bz2_BZ2Decompressor_decompress
(
BZ2Decompressor
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"data"
,
"max_length"
,
NULL
};
...
...
@@ -130,7 +130,7 @@ _bz2_BZ2Decompressor_decompress(BZ2Decompressor *self, PyObject *args, PyObject
Py_buffer
data
=
{
NULL
,
NULL
};
Py_ssize_t
max_length
=
-
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
&
max_length
))
{
goto
exit
;
}
...
...
@@ -174,4 +174,4 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
40e5ef049f9e719b
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
7e57af0b368d3e55
input=a9049054013a1b77]*/
Modules/clinic/_codecsmodule.c.h
View file @
37e4ef7b
...
...
@@ -55,14 +55,14 @@ PyDoc_STRVAR(_codecs_encode__doc__,
"codecs.register_error that can handle ValueErrors."
);
#define _CODECS_ENCODE_METHODDEF \
{"encode", (PyCFunction)_codecs_encode, METH_
VARARGS|METH_KEYWORDS
, _codecs_encode__doc__},
{"encode", (PyCFunction)_codecs_encode, METH_
FASTCALL
, _codecs_encode__doc__},
static
PyObject
*
_codecs_encode_impl
(
PyObject
*
module
,
PyObject
*
obj
,
const
char
*
encoding
,
const
char
*
errors
);
static
PyObject
*
_codecs_encode
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_codecs_encode
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"obj"
,
"encoding"
,
"errors"
,
NULL
};
...
...
@@ -71,7 +71,7 @@ _codecs_encode(PyObject *module, PyObject *args, PyObject *kwargs)
const
char
*
encoding
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
obj
,
&
encoding
,
&
errors
))
{
goto
exit
;
}
...
...
@@ -94,14 +94,14 @@ PyDoc_STRVAR(_codecs_decode__doc__,
"codecs.register_error that can handle ValueErrors."
);
#define _CODECS_DECODE_METHODDEF \
{"decode", (PyCFunction)_codecs_decode, METH_
VARARGS|METH_KEYWORDS
, _codecs_decode__doc__},
{"decode", (PyCFunction)_codecs_decode, METH_
FASTCALL
, _codecs_decode__doc__},
static
PyObject
*
_codecs_decode_impl
(
PyObject
*
module
,
PyObject
*
obj
,
const
char
*
encoding
,
const
char
*
errors
);
static
PyObject
*
_codecs_decode
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_codecs_decode
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"obj"
,
"encoding"
,
"errors"
,
NULL
};
...
...
@@ -110,7 +110,7 @@ _codecs_decode(PyObject *module, PyObject *args, PyObject *kwargs)
const
char
*
encoding
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
obj
,
&
encoding
,
&
errors
))
{
goto
exit
;
}
...
...
@@ -1536,4 +1536,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=
ebe313ab417b17bb
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
6d6afcabde10ed79
input=a9049054013a1b77]*/
Modules/clinic/_datetimemodule.c.h
View file @
37e4ef7b
...
...
@@ -14,20 +14,20 @@ PyDoc_STRVAR(datetime_datetime_now__doc__,
"If no tz is specified, uses local timezone."
);
#define DATETIME_DATETIME_NOW_METHODDEF \
{"now", (PyCFunction)datetime_datetime_now, METH_
VARARGS|METH_KEYWORDS
|METH_CLASS, datetime_datetime_now__doc__},
{"now", (PyCFunction)datetime_datetime_now, METH_
FASTCALL
|METH_CLASS, datetime_datetime_now__doc__},
static
PyObject
*
datetime_datetime_now_impl
(
PyTypeObject
*
type
,
PyObject
*
tz
);
static
PyObject
*
datetime_datetime_now
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
datetime_datetime_now
(
PyTypeObject
*
type
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"tz"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:now"
,
_keywords
,
0
};
PyObject
*
tz
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
tz
))
{
goto
exit
;
}
...
...
@@ -36,4 +36,4 @@ datetime_datetime_now(PyTypeObject *type, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
61f85af5637df8b5
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
8aaac0705add61ca
input=a9049054013a1b77]*/
Modules/clinic/_elementtree.c.h
View file @
37e4ef7b
...
...
@@ -136,14 +136,14 @@ PyDoc_STRVAR(_elementtree_Element_find__doc__,
"
\n
"
);
#define _ELEMENTTREE_ELEMENT_FIND_METHODDEF \
{"find", (PyCFunction)_elementtree_Element_find, METH_
VARARGS|METH_KEYWORDS
, _elementtree_Element_find__doc__},
{"find", (PyCFunction)_elementtree_Element_find, METH_
FASTCALL
, _elementtree_Element_find__doc__},
static
PyObject
*
_elementtree_Element_find_impl
(
ElementObject
*
self
,
PyObject
*
path
,
PyObject
*
namespaces
);
static
PyObject
*
_elementtree_Element_find
(
ElementObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_elementtree_Element_find
(
ElementObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"path"
,
"namespaces"
,
NULL
};
...
...
@@ -151,7 +151,7 @@ _elementtree_Element_find(ElementObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
path
;
PyObject
*
namespaces
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
path
,
&
namespaces
))
{
goto
exit
;
}
...
...
@@ -167,7 +167,7 @@ PyDoc_STRVAR(_elementtree_Element_findtext__doc__,
"
\n
"
);
#define _ELEMENTTREE_ELEMENT_FINDTEXT_METHODDEF \
{"findtext", (PyCFunction)_elementtree_Element_findtext, METH_
VARARGS|METH_KEYWORDS
, _elementtree_Element_findtext__doc__},
{"findtext", (PyCFunction)_elementtree_Element_findtext, METH_
FASTCALL
, _elementtree_Element_findtext__doc__},
static
PyObject
*
_elementtree_Element_findtext_impl
(
ElementObject
*
self
,
PyObject
*
path
,
...
...
@@ -175,7 +175,7 @@ _elementtree_Element_findtext_impl(ElementObject *self, PyObject *path,
PyObject
*
namespaces
);
static
PyObject
*
_elementtree_Element_findtext
(
ElementObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_elementtree_Element_findtext
(
ElementObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"path"
,
"default"
,
"namespaces"
,
NULL
};
...
...
@@ -184,7 +184,7 @@ _elementtree_Element_findtext(ElementObject *self, PyObject *args, PyObject *kwa
PyObject
*
default_value
=
Py_None
;
PyObject
*
namespaces
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
path
,
&
default_value
,
&
namespaces
))
{
goto
exit
;
}
...
...
@@ -200,14 +200,14 @@ PyDoc_STRVAR(_elementtree_Element_findall__doc__,
"
\n
"
);
#define _ELEMENTTREE_ELEMENT_FINDALL_METHODDEF \
{"findall", (PyCFunction)_elementtree_Element_findall, METH_
VARARGS|METH_KEYWORDS
, _elementtree_Element_findall__doc__},
{"findall", (PyCFunction)_elementtree_Element_findall, METH_
FASTCALL
, _elementtree_Element_findall__doc__},
static
PyObject
*
_elementtree_Element_findall_impl
(
ElementObject
*
self
,
PyObject
*
path
,
PyObject
*
namespaces
);
static
PyObject
*
_elementtree_Element_findall
(
ElementObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_elementtree_Element_findall
(
ElementObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"path"
,
"namespaces"
,
NULL
};
...
...
@@ -215,7 +215,7 @@ _elementtree_Element_findall(ElementObject *self, PyObject *args, PyObject *kwar
PyObject
*
path
;
PyObject
*
namespaces
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
path
,
&
namespaces
))
{
goto
exit
;
}
...
...
@@ -231,14 +231,14 @@ PyDoc_STRVAR(_elementtree_Element_iterfind__doc__,
"
\n
"
);
#define _ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF \
{"iterfind", (PyCFunction)_elementtree_Element_iterfind, METH_
VARARGS|METH_KEYWORDS
, _elementtree_Element_iterfind__doc__},
{"iterfind", (PyCFunction)_elementtree_Element_iterfind, METH_
FASTCALL
, _elementtree_Element_iterfind__doc__},
static
PyObject
*
_elementtree_Element_iterfind_impl
(
ElementObject
*
self
,
PyObject
*
path
,
PyObject
*
namespaces
);
static
PyObject
*
_elementtree_Element_iterfind
(
ElementObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_elementtree_Element_iterfind
(
ElementObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"path"
,
"namespaces"
,
NULL
};
...
...
@@ -246,7 +246,7 @@ _elementtree_Element_iterfind(ElementObject *self, PyObject *args, PyObject *kwa
PyObject
*
path
;
PyObject
*
namespaces
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
path
,
&
namespaces
))
{
goto
exit
;
}
...
...
@@ -262,14 +262,14 @@ PyDoc_STRVAR(_elementtree_Element_get__doc__,
"
\n
"
);
#define _ELEMENTTREE_ELEMENT_GET_METHODDEF \
{"get", (PyCFunction)_elementtree_Element_get, METH_
VARARGS|METH_KEYWORDS
, _elementtree_Element_get__doc__},
{"get", (PyCFunction)_elementtree_Element_get, METH_
FASTCALL
, _elementtree_Element_get__doc__},
static
PyObject
*
_elementtree_Element_get_impl
(
ElementObject
*
self
,
PyObject
*
key
,
PyObject
*
default_value
);
static
PyObject
*
_elementtree_Element_get
(
ElementObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_elementtree_Element_get
(
ElementObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"key"
,
"default"
,
NULL
};
...
...
@@ -277,7 +277,7 @@ _elementtree_Element_get(ElementObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
key
;
PyObject
*
default_value
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
key
,
&
default_value
))
{
goto
exit
;
}
...
...
@@ -310,20 +310,20 @@ PyDoc_STRVAR(_elementtree_Element_iter__doc__,
"
\n
"
);
#define _ELEMENTTREE_ELEMENT_ITER_METHODDEF \
{"iter", (PyCFunction)_elementtree_Element_iter, METH_
VARARGS|METH_KEYWORDS
, _elementtree_Element_iter__doc__},
{"iter", (PyCFunction)_elementtree_Element_iter, METH_
FASTCALL
, _elementtree_Element_iter__doc__},
static
PyObject
*
_elementtree_Element_iter_impl
(
ElementObject
*
self
,
PyObject
*
tag
);
static
PyObject
*
_elementtree_Element_iter
(
ElementObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_elementtree_Element_iter
(
ElementObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"tag"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:iter"
,
_keywords
,
0
};
PyObject
*
tag
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
tag
))
{
goto
exit
;
}
...
...
@@ -702,4 +702,4 @@ _elementtree_XMLParser__setevents(XMLParserObject *self, PyObject *args)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
4c5e94c28a009ce6
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
b4a571a98ced3163
input=a9049054013a1b77]*/
Modules/clinic/_hashopenssl.c.h
View file @
37e4ef7b
...
...
@@ -12,7 +12,7 @@ PyDoc_STRVAR(_hashlib_scrypt__doc__,
"scrypt password-based key derivation function."
);
#define _HASHLIB_SCRYPT_METHODDEF \
{"scrypt", (PyCFunction)_hashlib_scrypt, METH_
VARARGS|METH_KEYWORDS
, _hashlib_scrypt__doc__},
{"scrypt", (PyCFunction)_hashlib_scrypt, METH_
FASTCALL
, _hashlib_scrypt__doc__},
static
PyObject
*
_hashlib_scrypt_impl
(
PyObject
*
module
,
Py_buffer
*
password
,
Py_buffer
*
salt
,
...
...
@@ -20,7 +20,7 @@ _hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt,
long
maxmem
,
long
dklen
);
static
PyObject
*
_hashlib_scrypt
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_hashlib_scrypt
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"password"
,
"salt"
,
"n"
,
"r"
,
"p"
,
"maxmem"
,
"dklen"
,
NULL
};
...
...
@@ -33,7 +33,7 @@ _hashlib_scrypt(PyObject *module, PyObject *args, PyObject *kwargs)
long
maxmem
=
0
;
long
dklen
=
64
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
password
,
&
salt
,
&
PyLong_Type
,
&
n_obj
,
&
PyLong_Type
,
&
r_obj
,
&
PyLong_Type
,
&
p_obj
,
&
maxmem
,
&
dklen
))
{
goto
exit
;
}
...
...
@@ -57,4 +57,4 @@ exit:
#ifndef _HASHLIB_SCRYPT_METHODDEF
#define _HASHLIB_SCRYPT_METHODDEF
#endif
/* !defined(_HASHLIB_SCRYPT_METHODDEF) */
/*[clinic end generated code: output=
8c5386789f77430a
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
118cd7036fa0fb52
input=a9049054013a1b77]*/
Modules/clinic/_lzmamodule.c.h
View file @
37e4ef7b
...
...
@@ -81,14 +81,14 @@ PyDoc_STRVAR(_lzma_LZMADecompressor_decompress__doc__,
"the unused_data attribute."
);
#define _LZMA_LZMADECOMPRESSOR_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_
VARARGS|METH_KEYWORDS
, _lzma_LZMADecompressor_decompress__doc__},
{"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_
FASTCALL
, _lzma_LZMADecompressor_decompress__doc__},
static
PyObject
*
_lzma_LZMADecompressor_decompress_impl
(
Decompressor
*
self
,
Py_buffer
*
data
,
Py_ssize_t
max_length
);
static
PyObject
*
_lzma_LZMADecompressor_decompress
(
Decompressor
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_lzma_LZMADecompressor_decompress
(
Decompressor
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"data"
,
"max_length"
,
NULL
};
...
...
@@ -96,7 +96,7 @@ _lzma_LZMADecompressor_decompress(Decompressor *self, PyObject *args, PyObject *
Py_buffer
data
=
{
NULL
,
NULL
};
Py_ssize_t
max_length
=
-
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
&
max_length
))
{
goto
exit
;
}
...
...
@@ -256,4 +256,4 @@ exit:
return
return_value
;
}
/*[clinic end generated code: output=
9434583fe111c771
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
f27abae460122706
input=a9049054013a1b77]*/
Modules/clinic/_pickle.c.h
View file @
37e4ef7b
...
...
@@ -384,14 +384,14 @@ PyDoc_STRVAR(_pickle_dump__doc__,
"2, so that the pickle data stream is readable with Python 2."
);
#define _PICKLE_DUMP_METHODDEF \
{"dump", (PyCFunction)_pickle_dump, METH_
VARARGS|METH_KEYWORDS
, _pickle_dump__doc__},
{"dump", (PyCFunction)_pickle_dump, METH_
FASTCALL
, _pickle_dump__doc__},
static
PyObject
*
_pickle_dump_impl
(
PyObject
*
module
,
PyObject
*
obj
,
PyObject
*
file
,
PyObject
*
protocol
,
int
fix_imports
);
static
PyObject
*
_pickle_dump
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_pickle_dump
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"obj"
,
"file"
,
"protocol"
,
"fix_imports"
,
NULL
};
...
...
@@ -401,7 +401,7 @@ _pickle_dump(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject
*
protocol
=
NULL
;
int
fix_imports
=
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
obj
,
&
file
,
&
protocol
,
&
fix_imports
))
{
goto
exit
;
}
...
...
@@ -430,14 +430,14 @@ PyDoc_STRVAR(_pickle_dumps__doc__,
"Python 2, so that the pickle data stream is readable with Python 2."
);
#define _PICKLE_DUMPS_METHODDEF \
{"dumps", (PyCFunction)_pickle_dumps, METH_
VARARGS|METH_KEYWORDS
, _pickle_dumps__doc__},
{"dumps", (PyCFunction)_pickle_dumps, METH_
FASTCALL
, _pickle_dumps__doc__},
static
PyObject
*
_pickle_dumps_impl
(
PyObject
*
module
,
PyObject
*
obj
,
PyObject
*
protocol
,
int
fix_imports
);
static
PyObject
*
_pickle_dumps
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_pickle_dumps
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"obj"
,
"protocol"
,
"fix_imports"
,
NULL
};
...
...
@@ -446,7 +446,7 @@ _pickle_dumps(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject
*
protocol
=
NULL
;
int
fix_imports
=
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
obj
,
&
protocol
,
&
fix_imports
))
{
goto
exit
;
}
...
...
@@ -486,14 +486,14 @@ PyDoc_STRVAR(_pickle_load__doc__,
"string instances as bytes objects."
);
#define _PICKLE_LOAD_METHODDEF \
{"load", (PyCFunction)_pickle_load, METH_
VARARGS|METH_KEYWORDS
, _pickle_load__doc__},
{"load", (PyCFunction)_pickle_load, METH_
FASTCALL
, _pickle_load__doc__},
static
PyObject
*
_pickle_load_impl
(
PyObject
*
module
,
PyObject
*
file
,
int
fix_imports
,
const
char
*
encoding
,
const
char
*
errors
);
static
PyObject
*
_pickle_load
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_pickle_load
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"file"
,
"fix_imports"
,
"encoding"
,
"errors"
,
NULL
};
...
...
@@ -503,7 +503,7 @@ _pickle_load(PyObject *module, PyObject *args, PyObject *kwargs)
const
char
*
encoding
=
"ASCII"
;
const
char
*
errors
=
"strict"
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
file
,
&
fix_imports
,
&
encoding
,
&
errors
))
{
goto
exit
;
}
...
...
@@ -534,14 +534,14 @@ PyDoc_STRVAR(_pickle_loads__doc__,
"string instances as bytes objects."
);
#define _PICKLE_LOADS_METHODDEF \
{"loads", (PyCFunction)_pickle_loads, METH_
VARARGS|METH_KEYWORDS
, _pickle_loads__doc__},
{"loads", (PyCFunction)_pickle_loads, METH_
FASTCALL
, _pickle_loads__doc__},
static
PyObject
*
_pickle_loads_impl
(
PyObject
*
module
,
PyObject
*
data
,
int
fix_imports
,
const
char
*
encoding
,
const
char
*
errors
);
static
PyObject
*
_pickle_loads
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_pickle_loads
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"data"
,
"fix_imports"
,
"encoding"
,
"errors"
,
NULL
};
...
...
@@ -551,7 +551,7 @@ _pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs)
const
char
*
encoding
=
"ASCII"
;
const
char
*
errors
=
"strict"
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
&
fix_imports
,
&
encoding
,
&
errors
))
{
goto
exit
;
}
...
...
@@ -560,4 +560,4 @@ _pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
50f9127109673c98
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
82be137b3c09cb9f
input=a9049054013a1b77]*/
Modules/clinic/_sre.c.h
View file @
37e4ef7b
This diff is collapsed.
Click to expand it.
Modules/clinic/_ssl.c.h
View file @
37e4ef7b
...
...
@@ -469,14 +469,14 @@ PyDoc_STRVAR(_ssl__SSLContext_load_cert_chain__doc__,
"
\n
"
);
#define _SSL__SSLCONTEXT_LOAD_CERT_CHAIN_METHODDEF \
{"load_cert_chain", (PyCFunction)_ssl__SSLContext_load_cert_chain, METH_
VARARGS|METH_KEYWORDS
, _ssl__SSLContext_load_cert_chain__doc__},
{"load_cert_chain", (PyCFunction)_ssl__SSLContext_load_cert_chain, METH_
FASTCALL
, _ssl__SSLContext_load_cert_chain__doc__},
static
PyObject
*
_ssl__SSLContext_load_cert_chain_impl
(
PySSLContext
*
self
,
PyObject
*
certfile
,
PyObject
*
keyfile
,
PyObject
*
password
);
static
PyObject
*
_ssl__SSLContext_load_cert_chain
(
PySSLContext
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl__SSLContext_load_cert_chain
(
PySSLContext
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"certfile"
,
"keyfile"
,
"password"
,
NULL
};
...
...
@@ -485,7 +485,7 @@ _ssl__SSLContext_load_cert_chain(PySSLContext *self, PyObject *args, PyObject *k
PyObject
*
keyfile
=
NULL
;
PyObject
*
password
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
certfile
,
&
keyfile
,
&
password
))
{
goto
exit
;
}
...
...
@@ -501,7 +501,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_verify_locations__doc__,
"
\n
"
);
#define _SSL__SSLCONTEXT_LOAD_VERIFY_LOCATIONS_METHODDEF \
{"load_verify_locations", (PyCFunction)_ssl__SSLContext_load_verify_locations, METH_
VARARGS|METH_KEYWORDS
, _ssl__SSLContext_load_verify_locations__doc__},
{"load_verify_locations", (PyCFunction)_ssl__SSLContext_load_verify_locations, METH_
FASTCALL
, _ssl__SSLContext_load_verify_locations__doc__},
static
PyObject
*
_ssl__SSLContext_load_verify_locations_impl
(
PySSLContext
*
self
,
...
...
@@ -510,7 +510,7 @@ _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self,
PyObject
*
cadata
);
static
PyObject
*
_ssl__SSLContext_load_verify_locations
(
PySSLContext
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl__SSLContext_load_verify_locations
(
PySSLContext
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"cafile"
,
"capath"
,
"cadata"
,
NULL
};
...
...
@@ -519,7 +519,7 @@ _ssl__SSLContext_load_verify_locations(PySSLContext *self, PyObject *args, PyObj
PyObject
*
capath
=
NULL
;
PyObject
*
cadata
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
cafile
,
&
capath
,
&
cadata
))
{
goto
exit
;
}
...
...
@@ -543,14 +543,14 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_socket__doc__,
"
\n
"
);
#define _SSL__SSLCONTEXT__WRAP_SOCKET_METHODDEF \
{"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_
VARARGS|METH_KEYWORDS
, _ssl__SSLContext__wrap_socket__doc__},
{"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_
FASTCALL
, _ssl__SSLContext__wrap_socket__doc__},
static
PyObject
*
_ssl__SSLContext__wrap_socket_impl
(
PySSLContext
*
self
,
PyObject
*
sock
,
int
server_side
,
PyObject
*
hostname_obj
);
static
PyObject
*
_ssl__SSLContext__wrap_socket
(
PySSLContext
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl__SSLContext__wrap_socket
(
PySSLContext
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"sock"
,
"server_side"
,
"server_hostname"
,
NULL
};
...
...
@@ -559,7 +559,7 @@ _ssl__SSLContext__wrap_socket(PySSLContext *self, PyObject *args, PyObject *kwar
int
server_side
;
PyObject
*
hostname_obj
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
PySocketModule
.
Sock_Type
,
&
sock
,
&
server_side
,
&
hostname_obj
))
{
goto
exit
;
}
...
...
@@ -576,7 +576,7 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_bio__doc__,
"
\n
"
);
#define _SSL__SSLCONTEXT__WRAP_BIO_METHODDEF \
{"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_
VARARGS|METH_KEYWORDS
, _ssl__SSLContext__wrap_bio__doc__},
{"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_
FASTCALL
, _ssl__SSLContext__wrap_bio__doc__},
static
PyObject
*
_ssl__SSLContext__wrap_bio_impl
(
PySSLContext
*
self
,
PySSLMemoryBIO
*
incoming
,
...
...
@@ -584,7 +584,7 @@ _ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming,
PyObject
*
hostname_obj
);
static
PyObject
*
_ssl__SSLContext__wrap_bio
(
PySSLContext
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl__SSLContext__wrap_bio
(
PySSLContext
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"incoming"
,
"outgoing"
,
"server_side"
,
"server_hostname"
,
NULL
};
...
...
@@ -594,7 +594,7 @@ _ssl__SSLContext__wrap_bio(PySSLContext *self, PyObject *args, PyObject *kwargs)
int
server_side
;
PyObject
*
hostname_obj
=
Py_None
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
PySSLMemoryBIO_Type
,
&
incoming
,
&
PySSLMemoryBIO_Type
,
&
outgoing
,
&
server_side
,
&
hostname_obj
))
{
goto
exit
;
}
...
...
@@ -700,20 +700,20 @@ PyDoc_STRVAR(_ssl__SSLContext_get_ca_certs__doc__,
"been used at least once."
);
#define _SSL__SSLCONTEXT_GET_CA_CERTS_METHODDEF \
{"get_ca_certs", (PyCFunction)_ssl__SSLContext_get_ca_certs, METH_
VARARGS|METH_KEYWORDS
, _ssl__SSLContext_get_ca_certs__doc__},
{"get_ca_certs", (PyCFunction)_ssl__SSLContext_get_ca_certs, METH_
FASTCALL
, _ssl__SSLContext_get_ca_certs__doc__},
static
PyObject
*
_ssl__SSLContext_get_ca_certs_impl
(
PySSLContext
*
self
,
int
binary_form
);
static
PyObject
*
_ssl__SSLContext_get_ca_certs
(
PySSLContext
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl__SSLContext_get_ca_certs
(
PySSLContext
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"binary_form"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|p:get_ca_certs"
,
_keywords
,
0
};
int
binary_form
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
binary_form
))
{
goto
exit
;
}
...
...
@@ -1011,13 +1011,13 @@ PyDoc_STRVAR(_ssl_txt2obj__doc__,
"long name are also matched."
);
#define _SSL_TXT2OBJ_METHODDEF \
{"txt2obj", (PyCFunction)_ssl_txt2obj, METH_
VARARGS|METH_KEYWORDS
, _ssl_txt2obj__doc__},
{"txt2obj", (PyCFunction)_ssl_txt2obj, METH_
FASTCALL
, _ssl_txt2obj__doc__},
static
PyObject
*
_ssl_txt2obj_impl
(
PyObject
*
module
,
const
char
*
txt
,
int
name
);
static
PyObject
*
_ssl_txt2obj
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl_txt2obj
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"txt"
,
"name"
,
NULL
};
...
...
@@ -1025,7 +1025,7 @@ _ssl_txt2obj(PyObject *module, PyObject *args, PyObject *kwargs)
const
char
*
txt
;
int
name
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
txt
,
&
name
))
{
goto
exit
;
}
...
...
@@ -1077,20 +1077,20 @@ PyDoc_STRVAR(_ssl_enum_certificates__doc__,
"a set of OIDs or the boolean True."
);
#define _SSL_ENUM_CERTIFICATES_METHODDEF \
{"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_
VARARGS|METH_KEYWORDS
, _ssl_enum_certificates__doc__},
{"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_
FASTCALL
, _ssl_enum_certificates__doc__},
static
PyObject
*
_ssl_enum_certificates_impl
(
PyObject
*
module
,
const
char
*
store_name
);
static
PyObject
*
_ssl_enum_certificates
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl_enum_certificates
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"store_name"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"s:enum_certificates"
,
_keywords
,
0
};
const
char
*
store_name
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
store_name
))
{
goto
exit
;
}
...
...
@@ -1116,20 +1116,20 @@ PyDoc_STRVAR(_ssl_enum_crls__doc__,
"X509_ASN_ENCODING or PKCS_7_ASN_ENCODING."
);
#define _SSL_ENUM_CRLS_METHODDEF \
{"enum_crls", (PyCFunction)_ssl_enum_crls, METH_
VARARGS|METH_KEYWORDS
, _ssl_enum_crls__doc__},
{"enum_crls", (PyCFunction)_ssl_enum_crls, METH_
FASTCALL
, _ssl_enum_crls__doc__},
static
PyObject
*
_ssl_enum_crls_impl
(
PyObject
*
module
,
const
char
*
store_name
);
static
PyObject
*
_ssl_enum_crls
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_ssl_enum_crls
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"store_name"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"s:enum_crls"
,
_keywords
,
0
};
const
char
*
store_name
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
store_name
))
{
goto
exit
;
}
...
...
@@ -1168,4 +1168,4 @@ exit:
#ifndef _SSL_ENUM_CRLS_METHODDEF
#define _SSL_ENUM_CRLS_METHODDEF
#endif
/* !defined(_SSL_ENUM_CRLS_METHODDEF) */
/*[clinic end generated code: output=
2e7907a7d8f97ccf
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
a859b21fe68a6115
input=a9049054013a1b77]*/
Modules/clinic/_winapi.c.h
View file @
37e4ef7b
...
...
@@ -95,14 +95,14 @@ PyDoc_STRVAR(_winapi_ConnectNamedPipe__doc__,
"
\n
"
);
#define _WINAPI_CONNECTNAMEDPIPE_METHODDEF \
{"ConnectNamedPipe", (PyCFunction)_winapi_ConnectNamedPipe, METH_
VARARGS|METH_KEYWORDS
, _winapi_ConnectNamedPipe__doc__},
{"ConnectNamedPipe", (PyCFunction)_winapi_ConnectNamedPipe, METH_
FASTCALL
, _winapi_ConnectNamedPipe__doc__},
static
PyObject
*
_winapi_ConnectNamedPipe_impl
(
PyObject
*
module
,
HANDLE
handle
,
int
use_overlapped
);
static
PyObject
*
_winapi_ConnectNamedPipe
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_winapi_ConnectNamedPipe
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"handle"
,
"overlapped"
,
NULL
};
...
...
@@ -110,7 +110,7 @@ _winapi_ConnectNamedPipe(PyObject *module, PyObject *args, PyObject *kwargs)
HANDLE
handle
;
int
use_overlapped
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
handle
,
&
use_overlapped
))
{
goto
exit
;
}
...
...
@@ -670,14 +670,14 @@ PyDoc_STRVAR(_winapi_ReadFile__doc__,
"
\n
"
);
#define _WINAPI_READFILE_METHODDEF \
{"ReadFile", (PyCFunction)_winapi_ReadFile, METH_
VARARGS|METH_KEYWORDS
, _winapi_ReadFile__doc__},
{"ReadFile", (PyCFunction)_winapi_ReadFile, METH_
FASTCALL
, _winapi_ReadFile__doc__},
static
PyObject
*
_winapi_ReadFile_impl
(
PyObject
*
module
,
HANDLE
handle
,
int
size
,
int
use_overlapped
);
static
PyObject
*
_winapi_ReadFile
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_winapi_ReadFile
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"handle"
,
"size"
,
"overlapped"
,
NULL
};
...
...
@@ -686,7 +686,7 @@ _winapi_ReadFile(PyObject *module, PyObject *args, PyObject *kwargs)
int
size
;
int
use_overlapped
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
handle
,
&
size
,
&
use_overlapped
))
{
goto
exit
;
}
...
...
@@ -864,14 +864,14 @@ PyDoc_STRVAR(_winapi_WriteFile__doc__,
"
\n
"
);
#define _WINAPI_WRITEFILE_METHODDEF \
{"WriteFile", (PyCFunction)_winapi_WriteFile, METH_
VARARGS|METH_KEYWORDS
, _winapi_WriteFile__doc__},
{"WriteFile", (PyCFunction)_winapi_WriteFile, METH_
FASTCALL
, _winapi_WriteFile__doc__},
static
PyObject
*
_winapi_WriteFile_impl
(
PyObject
*
module
,
HANDLE
handle
,
PyObject
*
buffer
,
int
use_overlapped
);
static
PyObject
*
_winapi_WriteFile
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_winapi_WriteFile
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"handle"
,
"buffer"
,
"overlapped"
,
NULL
};
...
...
@@ -880,7 +880,7 @@ _winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject
*
buffer
;
int
use_overlapped
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
handle
,
&
buffer
,
&
use_overlapped
))
{
goto
exit
;
}
...
...
@@ -889,4 +889,4 @@ _winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=4
bfccfb32ab726e8
input=a9049054013a1b77]*/
/*[clinic end generated code: output=4
6d6382a6662c4a9
input=a9049054013a1b77]*/
Modules/clinic/binascii.c.h
View file @
37e4ef7b
...
...
@@ -103,13 +103,13 @@ PyDoc_STRVAR(binascii_b2a_base64__doc__,
"Base64-code line of data."
);
#define BINASCII_B2A_BASE64_METHODDEF \
{"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_
VARARGS|METH_KEYWORDS
, binascii_b2a_base64__doc__},
{"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_
FASTCALL
, binascii_b2a_base64__doc__},
static
PyObject
*
binascii_b2a_base64_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
int
newline
);
static
PyObject
*
binascii_b2a_base64
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
binascii_b2a_base64
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"data"
,
"newline"
,
NULL
};
...
...
@@ -117,7 +117,7 @@ binascii_b2a_base64(PyObject *module, PyObject *args, PyObject *kwargs)
Py_buffer
data
=
{
NULL
,
NULL
};
int
newline
=
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
&
newline
))
{
goto
exit
;
}
...
...
@@ -480,13 +480,13 @@ PyDoc_STRVAR(binascii_a2b_qp__doc__,
"Decode a string of qp-encoded data."
);
#define BINASCII_A2B_QP_METHODDEF \
{"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_
VARARGS|METH_KEYWORDS
, binascii_a2b_qp__doc__},
{"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_
FASTCALL
, binascii_a2b_qp__doc__},
static
PyObject
*
binascii_a2b_qp_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
int
header
);
static
PyObject
*
binascii_a2b_qp
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
binascii_a2b_qp
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"data"
,
"header"
,
NULL
};
...
...
@@ -494,7 +494,7 @@ binascii_a2b_qp(PyObject *module, PyObject *args, PyObject *kwargs)
Py_buffer
data
=
{
NULL
,
NULL
};
int
header
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
ascii_buffer_converter
,
&
data
,
&
header
))
{
goto
exit
;
}
...
...
@@ -519,14 +519,14 @@ PyDoc_STRVAR(binascii_b2a_qp__doc__,
"are both encoded. When quotetabs is set, space and tabs are encoded."
);
#define BINASCII_B2A_QP_METHODDEF \
{"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_
VARARGS|METH_KEYWORDS
, binascii_b2a_qp__doc__},
{"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_
FASTCALL
, binascii_b2a_qp__doc__},
static
PyObject
*
binascii_b2a_qp_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
int
quotetabs
,
int
istext
,
int
header
);
static
PyObject
*
binascii_b2a_qp
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
binascii_b2a_qp
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"data"
,
"quotetabs"
,
"istext"
,
"header"
,
NULL
};
...
...
@@ -536,7 +536,7 @@ binascii_b2a_qp(PyObject *module, PyObject *args, PyObject *kwargs)
int
istext
=
1
;
int
header
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
&
quotetabs
,
&
istext
,
&
header
))
{
goto
exit
;
}
...
...
@@ -550,4 +550,4 @@ exit:
return
return_value
;
}
/*[clinic end generated code: output=1
2611b05d8bf4a9c
input=a9049054013a1b77]*/
/*[clinic end generated code: output=1
f8d6e48f75f6d1e
input=a9049054013a1b77]*/
Modules/clinic/cmathmodule.c.h
View file @
37e4ef7b
...
...
@@ -851,14 +851,14 @@ PyDoc_STRVAR(cmath_isclose__doc__,
"not close to anything, even itself. inf and -inf are only close to themselves."
);
#define CMATH_ISCLOSE_METHODDEF \
{"isclose", (PyCFunction)cmath_isclose, METH_
VARARGS|METH_KEYWORDS
, cmath_isclose__doc__},
{"isclose", (PyCFunction)cmath_isclose, METH_
FASTCALL
, cmath_isclose__doc__},
static
int
cmath_isclose_impl
(
PyObject
*
module
,
Py_complex
a
,
Py_complex
b
,
double
rel_tol
,
double
abs_tol
);
static
PyObject
*
cmath_isclose
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
cmath_isclose
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"a"
,
"b"
,
"rel_tol"
,
"abs_tol"
,
NULL
};
...
...
@@ -869,7 +869,7 @@ cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs)
double
abs_tol
=
0
.
0
;
int
_return_value
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
a
,
&
b
,
&
rel_tol
,
&
abs_tol
))
{
goto
exit
;
}
...
...
@@ -882,4 +882,4 @@ cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
aa2e77ca9fc26928
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
978f59702b41655f
input=a9049054013a1b77]*/
Modules/clinic/grpmodule.c.h
View file @
37e4ef7b
...
...
@@ -11,20 +11,20 @@ PyDoc_STRVAR(grp_getgrgid__doc__,
"If id is not valid, raise KeyError."
);
#define GRP_GETGRGID_METHODDEF \
{"getgrgid", (PyCFunction)grp_getgrgid, METH_
VARARGS|METH_KEYWORDS
, grp_getgrgid__doc__},
{"getgrgid", (PyCFunction)grp_getgrgid, METH_
FASTCALL
, grp_getgrgid__doc__},
static
PyObject
*
grp_getgrgid_impl
(
PyObject
*
module
,
PyObject
*
id
);
static
PyObject
*
grp_getgrgid
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
grp_getgrgid
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"id"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"O:getgrgid"
,
_keywords
,
0
};
PyObject
*
id
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
id
))
{
goto
exit
;
}
...
...
@@ -43,20 +43,20 @@ PyDoc_STRVAR(grp_getgrnam__doc__,
"If name is not valid, raise KeyError."
);
#define GRP_GETGRNAM_METHODDEF \
{"getgrnam", (PyCFunction)grp_getgrnam, METH_
VARARGS|METH_KEYWORDS
, grp_getgrnam__doc__},
{"getgrnam", (PyCFunction)grp_getgrnam, METH_
FASTCALL
, grp_getgrnam__doc__},
static
PyObject
*
grp_getgrnam_impl
(
PyObject
*
module
,
PyObject
*
name
);
static
PyObject
*
grp_getgrnam
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
grp_getgrnam
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"name"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"U:getgrnam"
,
_keywords
,
0
};
PyObject
*
name
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
name
))
{
goto
exit
;
}
...
...
@@ -86,4 +86,4 @@ grp_getgrall(PyObject *module, PyObject *Py_UNUSED(ignored))
{
return
grp_getgrall_impl
(
module
);
}
/*[clinic end generated code: output=
c06081097b7fffe7
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
d6417ae0a7298e0e
input=a9049054013a1b77]*/
Modules/clinic/md5module.c.h
View file @
37e4ef7b
...
...
@@ -72,20 +72,20 @@ PyDoc_STRVAR(_md5_md5__doc__,
"Return a new MD5 hash object; optionally initialized with a string."
);
#define _MD5_MD5_METHODDEF \
{"md5", (PyCFunction)_md5_md5, METH_
VARARGS|METH_KEYWORDS
, _md5_md5__doc__},
{"md5", (PyCFunction)_md5_md5, METH_
FASTCALL
, _md5_md5__doc__},
static
PyObject
*
_md5_md5_impl
(
PyObject
*
module
,
PyObject
*
string
);
static
PyObject
*
_md5_md5
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_md5_md5
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"string"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:md5"
,
_keywords
,
0
};
PyObject
*
string
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
string
))
{
goto
exit
;
}
...
...
@@ -94,4 +94,4 @@ _md5_md5(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
f86fc2f3f21831e2
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
54cd50db050f2589
input=a9049054013a1b77]*/
Modules/clinic/posixmodule.c.h
View file @
37e4ef7b
This diff is collapsed.
Click to expand it.
Modules/clinic/pyexpat.c.h
View file @
37e4ef7b
...
...
@@ -233,14 +233,14 @@ PyDoc_STRVAR(pyexpat_ParserCreate__doc__,
"Return a new XML parser object."
);
#define PYEXPAT_PARSERCREATE_METHODDEF \
{"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_
VARARGS|METH_KEYWORDS
, pyexpat_ParserCreate__doc__},
{"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_
FASTCALL
, pyexpat_ParserCreate__doc__},
static
PyObject
*
pyexpat_ParserCreate_impl
(
PyObject
*
module
,
const
char
*
encoding
,
const
char
*
namespace_separator
,
PyObject
*
intern
);
static
PyObject
*
pyexpat_ParserCreate
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
pyexpat_ParserCreate
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"encoding"
,
"namespace_separator"
,
"intern"
,
NULL
};
...
...
@@ -249,7 +249,7 @@ pyexpat_ParserCreate(PyObject *module, PyObject *args, PyObject *kwargs)
const
char
*
namespace_separator
=
NULL
;
PyObject
*
intern
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
encoding
,
&
namespace_separator
,
&
intern
))
{
goto
exit
;
}
...
...
@@ -289,4 +289,4 @@ exit:
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
#endif
/* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
/*[clinic end generated code: output=
93cfe662f2bc48e5
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
e889f7c6af6cc42f
input=a9049054013a1b77]*/
Modules/clinic/sha1module.c.h
View file @
37e4ef7b
...
...
@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha1_sha1__doc__,
"Return a new SHA1 hash object; optionally initialized with a string."
);
#define _SHA1_SHA1_METHODDEF \
{"sha1", (PyCFunction)_sha1_sha1, METH_
VARARGS|METH_KEYWORDS
, _sha1_sha1__doc__},
{"sha1", (PyCFunction)_sha1_sha1, METH_
FASTCALL
, _sha1_sha1__doc__},
static
PyObject
*
_sha1_sha1_impl
(
PyObject
*
module
,
PyObject
*
string
);
static
PyObject
*
_sha1_sha1
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_sha1_sha1
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"string"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:sha1"
,
_keywords
,
0
};
PyObject
*
string
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
string
))
{
goto
exit
;
}
...
...
@@ -94,4 +94,4 @@ _sha1_sha1(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
549a5d08c248337d
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
1430450f3f806895
input=a9049054013a1b77]*/
Modules/clinic/sha256module.c.h
View file @
37e4ef7b
...
...
@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha256_sha256__doc__,
"Return a new SHA-256 hash object; optionally initialized with a string."
);
#define _SHA256_SHA256_METHODDEF \
{"sha256", (PyCFunction)_sha256_sha256, METH_
VARARGS|METH_KEYWORDS
, _sha256_sha256__doc__},
{"sha256", (PyCFunction)_sha256_sha256, METH_
FASTCALL
, _sha256_sha256__doc__},
static
PyObject
*
_sha256_sha256_impl
(
PyObject
*
module
,
PyObject
*
string
);
static
PyObject
*
_sha256_sha256
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_sha256_sha256
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"string"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:sha256"
,
_keywords
,
0
};
PyObject
*
string
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
string
))
{
goto
exit
;
}
...
...
@@ -102,20 +102,20 @@ PyDoc_STRVAR(_sha256_sha224__doc__,
"Return a new SHA-224 hash object; optionally initialized with a string."
);
#define _SHA256_SHA224_METHODDEF \
{"sha224", (PyCFunction)_sha256_sha224, METH_
VARARGS|METH_KEYWORDS
, _sha256_sha224__doc__},
{"sha224", (PyCFunction)_sha256_sha224, METH_
FASTCALL
, _sha256_sha224__doc__},
static
PyObject
*
_sha256_sha224_impl
(
PyObject
*
module
,
PyObject
*
string
);
static
PyObject
*
_sha256_sha224
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_sha256_sha224
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"string"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:sha224"
,
_keywords
,
0
};
PyObject
*
string
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
string
))
{
goto
exit
;
}
...
...
@@ -124,4 +124,4 @@ _sha256_sha224(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
a1296ba6d0780051
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
19439d70db7ead5c
input=a9049054013a1b77]*/
Modules/clinic/sha512module.c.h
View file @
37e4ef7b
...
...
@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha512_sha512__doc__,
"Return a new SHA-512 hash object; optionally initialized with a string."
);
#define _SHA512_SHA512_METHODDEF \
{"sha512", (PyCFunction)_sha512_sha512, METH_
VARARGS|METH_KEYWORDS
, _sha512_sha512__doc__},
{"sha512", (PyCFunction)_sha512_sha512, METH_
FASTCALL
, _sha512_sha512__doc__},
static
PyObject
*
_sha512_sha512_impl
(
PyObject
*
module
,
PyObject
*
string
);
static
PyObject
*
_sha512_sha512
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_sha512_sha512
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"string"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:sha512"
,
_keywords
,
0
};
PyObject
*
string
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
string
))
{
goto
exit
;
}
...
...
@@ -102,20 +102,20 @@ PyDoc_STRVAR(_sha512_sha384__doc__,
"Return a new SHA-384 hash object; optionally initialized with a string."
);
#define _SHA512_SHA384_METHODDEF \
{"sha384", (PyCFunction)_sha512_sha384, METH_
VARARGS|METH_KEYWORDS
, _sha512_sha384__doc__},
{"sha384", (PyCFunction)_sha512_sha384, METH_
FASTCALL
, _sha512_sha384__doc__},
static
PyObject
*
_sha512_sha384_impl
(
PyObject
*
module
,
PyObject
*
string
);
static
PyObject
*
_sha512_sha384
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
_sha512_sha384
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"string"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|O:sha384"
,
_keywords
,
0
};
PyObject
*
string
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
string
))
{
goto
exit
;
}
...
...
@@ -124,4 +124,4 @@ _sha512_sha384(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
8f7f6603a9c4e910
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
18f15598c3487045
input=a9049054013a1b77]*/
Modules/clinic/zlibmodule.c.h
View file @
37e4ef7b
...
...
@@ -14,13 +14,13 @@ PyDoc_STRVAR(zlib_compress__doc__,
" Compression level, in 0-9 or -1."
);
#define ZLIB_COMPRESS_METHODDEF \
{"compress", (PyCFunction)zlib_compress, METH_
VARARGS|METH_KEYWORDS
, zlib_compress__doc__},
{"compress", (PyCFunction)zlib_compress, METH_
FASTCALL
, zlib_compress__doc__},
static
PyObject
*
zlib_compress_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
int
level
);
static
PyObject
*
zlib_compress
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
zlib_compress
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
""
,
"level"
,
NULL
};
...
...
@@ -28,7 +28,7 @@ zlib_compress(PyObject *module, PyObject *args, PyObject *kwargs)
Py_buffer
data
=
{
NULL
,
NULL
};
int
level
=
Z_DEFAULT_COMPRESSION
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
&
level
))
{
goto
exit
;
}
...
...
@@ -57,14 +57,14 @@ PyDoc_STRVAR(zlib_decompress__doc__,
" The initial output buffer size."
);
#define ZLIB_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)zlib_decompress, METH_
VARARGS|METH_KEYWORDS
, zlib_decompress__doc__},
{"decompress", (PyCFunction)zlib_decompress, METH_
FASTCALL
, zlib_decompress__doc__},
static
PyObject
*
zlib_decompress_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
int
wbits
,
Py_ssize_t
bufsize
);
static
PyObject
*
zlib_decompress
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
zlib_decompress
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
""
,
"wbits"
,
"bufsize"
,
NULL
};
...
...
@@ -73,7 +73,7 @@ zlib_decompress(PyObject *module, PyObject *args, PyObject *kwargs)
int
wbits
=
MAX_WBITS
;
Py_ssize_t
bufsize
=
DEF_BUF_SIZE
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
&
wbits
,
ssize_t_converter
,
&
bufsize
))
{
goto
exit
;
}
...
...
@@ -119,14 +119,14 @@ PyDoc_STRVAR(zlib_compressobj__doc__,
" containing subsequences that are likely to occur in the input data."
);
#define ZLIB_COMPRESSOBJ_METHODDEF \
{"compressobj", (PyCFunction)zlib_compressobj, METH_
VARARGS|METH_KEYWORDS
, zlib_compressobj__doc__},
{"compressobj", (PyCFunction)zlib_compressobj, METH_
FASTCALL
, zlib_compressobj__doc__},
static
PyObject
*
zlib_compressobj_impl
(
PyObject
*
module
,
int
level
,
int
method
,
int
wbits
,
int
memLevel
,
int
strategy
,
Py_buffer
*
zdict
);
static
PyObject
*
zlib_compressobj
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
zlib_compressobj
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"level"
,
"method"
,
"wbits"
,
"memLevel"
,
"strategy"
,
"zdict"
,
NULL
};
...
...
@@ -138,7 +138,7 @@ zlib_compressobj(PyObject *module, PyObject *args, PyObject *kwargs)
int
strategy
=
Z_DEFAULT_STRATEGY
;
Py_buffer
zdict
=
{
NULL
,
NULL
};
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
level
,
&
method
,
&
wbits
,
&
memLevel
,
&
strategy
,
&
zdict
))
{
goto
exit
;
}
...
...
@@ -166,13 +166,13 @@ PyDoc_STRVAR(zlib_decompressobj__doc__,
" dictionary as used by the compressor that produced the input data."
);
#define ZLIB_DECOMPRESSOBJ_METHODDEF \
{"decompressobj", (PyCFunction)zlib_decompressobj, METH_
VARARGS|METH_KEYWORDS
, zlib_decompressobj__doc__},
{"decompressobj", (PyCFunction)zlib_decompressobj, METH_
FASTCALL
, zlib_decompressobj__doc__},
static
PyObject
*
zlib_decompressobj_impl
(
PyObject
*
module
,
int
wbits
,
PyObject
*
zdict
);
static
PyObject
*
zlib_decompressobj
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
zlib_decompressobj
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"wbits"
,
"zdict"
,
NULL
};
...
...
@@ -180,7 +180,7 @@ zlib_decompressobj(PyObject *module, PyObject *args, PyObject *kwargs)
int
wbits
=
MAX_WBITS
;
PyObject
*
zdict
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
wbits
,
&
zdict
))
{
goto
exit
;
}
...
...
@@ -247,14 +247,14 @@ PyDoc_STRVAR(zlib_Decompress_decompress__doc__,
"Call the flush() method to clear these buffers."
);
#define ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)zlib_Decompress_decompress, METH_
VARARGS|METH_KEYWORDS
, zlib_Decompress_decompress__doc__},
{"decompress", (PyCFunction)zlib_Decompress_decompress, METH_
FASTCALL
, zlib_Decompress_decompress__doc__},
static
PyObject
*
zlib_Decompress_decompress_impl
(
compobject
*
self
,
Py_buffer
*
data
,
Py_ssize_t
max_length
);
static
PyObject
*
zlib_Decompress_decompress
(
compobject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
zlib_Decompress_decompress
(
compobject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
""
,
"max_length"
,
NULL
};
...
...
@@ -262,7 +262,7 @@ zlib_Decompress_decompress(compobject *self, PyObject *args, PyObject *kwargs)
Py_buffer
data
=
{
NULL
,
NULL
};
Py_ssize_t
max_length
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
data
,
ssize_t_converter
,
&
max_length
))
{
goto
exit
;
}
...
...
@@ -467,4 +467,4 @@ exit:
#ifndef ZLIB_COMPRESS_COPY_METHODDEF
#define ZLIB_COMPRESS_COPY_METHODDEF
#endif
/* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
/*[clinic end generated code: output=
48911ef429b6590
3 input=a9049054013a1b77]*/
/*[clinic end generated code: output=
3a4e2bfe750423a
3 input=a9049054013a1b77]*/
Objects/clinic/bytearrayobject.c.h
View file @
37e4ef7b
...
...
@@ -51,14 +51,14 @@ PyDoc_STRVAR(bytearray_translate__doc__,
"The remaining characters are mapped through the given translation table."
);
#define BYTEARRAY_TRANSLATE_METHODDEF \
{"translate", (PyCFunction)bytearray_translate, METH_
VARARGS|METH_KEYWORDS
, bytearray_translate__doc__},
{"translate", (PyCFunction)bytearray_translate, METH_
FASTCALL
, bytearray_translate__doc__},
static
PyObject
*
bytearray_translate_impl
(
PyByteArrayObject
*
self
,
PyObject
*
table
,
PyObject
*
deletechars
);
static
PyObject
*
bytearray_translate
(
PyByteArrayObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytearray_translate
(
PyByteArrayObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
""
,
"delete"
,
NULL
};
...
...
@@ -66,7 +66,7 @@ bytearray_translate(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
table
;
PyObject
*
deletechars
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
table
,
&
deletechars
))
{
goto
exit
;
}
...
...
@@ -181,14 +181,14 @@ PyDoc_STRVAR(bytearray_split__doc__,
" -1 (the default value) means no limit."
);
#define BYTEARRAY_SPLIT_METHODDEF \
{"split", (PyCFunction)bytearray_split, METH_
VARARGS|METH_KEYWORDS
, bytearray_split__doc__},
{"split", (PyCFunction)bytearray_split, METH_
FASTCALL
, bytearray_split__doc__},
static
PyObject
*
bytearray_split_impl
(
PyByteArrayObject
*
self
,
PyObject
*
sep
,
Py_ssize_t
maxsplit
);
static
PyObject
*
bytearray_split
(
PyByteArrayObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytearray_split
(
PyByteArrayObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"sep"
,
"maxsplit"
,
NULL
};
...
...
@@ -196,7 +196,7 @@ bytearray_split(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
sep
=
Py_None
;
Py_ssize_t
maxsplit
=
-
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
sep
,
&
maxsplit
))
{
goto
exit
;
}
...
...
@@ -255,14 +255,14 @@ PyDoc_STRVAR(bytearray_rsplit__doc__,
"Splitting is done starting at the end of the bytearray and working to the front."
);
#define BYTEARRAY_RSPLIT_METHODDEF \
{"rsplit", (PyCFunction)bytearray_rsplit, METH_
VARARGS|METH_KEYWORDS
, bytearray_rsplit__doc__},
{"rsplit", (PyCFunction)bytearray_rsplit, METH_
FASTCALL
, bytearray_rsplit__doc__},
static
PyObject
*
bytearray_rsplit_impl
(
PyByteArrayObject
*
self
,
PyObject
*
sep
,
Py_ssize_t
maxsplit
);
static
PyObject
*
bytearray_rsplit
(
PyByteArrayObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytearray_rsplit
(
PyByteArrayObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"sep"
,
"maxsplit"
,
NULL
};
...
...
@@ -270,7 +270,7 @@ bytearray_rsplit(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
sep
=
Py_None
;
Py_ssize_t
maxsplit
=
-
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
sep
,
&
maxsplit
))
{
goto
exit
;
}
...
...
@@ -547,14 +547,14 @@ PyDoc_STRVAR(bytearray_decode__doc__,
" can handle UnicodeDecodeErrors."
);
#define BYTEARRAY_DECODE_METHODDEF \
{"decode", (PyCFunction)bytearray_decode, METH_
VARARGS|METH_KEYWORDS
, bytearray_decode__doc__},
{"decode", (PyCFunction)bytearray_decode, METH_
FASTCALL
, bytearray_decode__doc__},
static
PyObject
*
bytearray_decode_impl
(
PyByteArrayObject
*
self
,
const
char
*
encoding
,
const
char
*
errors
);
static
PyObject
*
bytearray_decode
(
PyByteArrayObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytearray_decode
(
PyByteArrayObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"encoding"
,
"errors"
,
NULL
};
...
...
@@ -562,7 +562,7 @@ bytearray_decode(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
const
char
*
encoding
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
encoding
,
&
errors
))
{
goto
exit
;
}
...
...
@@ -595,20 +595,20 @@ PyDoc_STRVAR(bytearray_splitlines__doc__,
"true."
);
#define BYTEARRAY_SPLITLINES_METHODDEF \
{"splitlines", (PyCFunction)bytearray_splitlines, METH_
VARARGS|METH_KEYWORDS
, bytearray_splitlines__doc__},
{"splitlines", (PyCFunction)bytearray_splitlines, METH_
FASTCALL
, bytearray_splitlines__doc__},
static
PyObject
*
bytearray_splitlines_impl
(
PyByteArrayObject
*
self
,
int
keepends
);
static
PyObject
*
bytearray_splitlines
(
PyByteArrayObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytearray_splitlines
(
PyByteArrayObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"keepends"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|i:splitlines"
,
_keywords
,
0
};
int
keepends
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
keepends
))
{
goto
exit
;
}
...
...
@@ -711,4 +711,4 @@ bytearray_sizeof(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored))
{
return
bytearray_sizeof_impl
(
self
);
}
/*[clinic end generated code: output=
59a0c86b29ff06d1
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
225342a680391b9c
input=a9049054013a1b77]*/
Objects/clinic/bytesobject.c.h
View file @
37e4ef7b
...
...
@@ -17,13 +17,13 @@ PyDoc_STRVAR(bytes_split__doc__,
" -1 (the default value) means no limit."
);
#define BYTES_SPLIT_METHODDEF \
{"split", (PyCFunction)bytes_split, METH_
VARARGS|METH_KEYWORDS
, bytes_split__doc__},
{"split", (PyCFunction)bytes_split, METH_
FASTCALL
, bytes_split__doc__},
static
PyObject
*
bytes_split_impl
(
PyBytesObject
*
self
,
PyObject
*
sep
,
Py_ssize_t
maxsplit
);
static
PyObject
*
bytes_split
(
PyBytesObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytes_split
(
PyBytesObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"sep"
,
"maxsplit"
,
NULL
};
...
...
@@ -31,7 +31,7 @@ bytes_split(PyBytesObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
sep
=
Py_None
;
Py_ssize_t
maxsplit
=
-
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
sep
,
&
maxsplit
))
{
goto
exit
;
}
...
...
@@ -136,13 +136,13 @@ PyDoc_STRVAR(bytes_rsplit__doc__,
"Splitting is done starting at the end of the bytes and working to the front."
);
#define BYTES_RSPLIT_METHODDEF \
{"rsplit", (PyCFunction)bytes_rsplit, METH_
VARARGS|METH_KEYWORDS
, bytes_rsplit__doc__},
{"rsplit", (PyCFunction)bytes_rsplit, METH_
FASTCALL
, bytes_rsplit__doc__},
static
PyObject
*
bytes_rsplit_impl
(
PyBytesObject
*
self
,
PyObject
*
sep
,
Py_ssize_t
maxsplit
);
static
PyObject
*
bytes_rsplit
(
PyBytesObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytes_rsplit
(
PyBytesObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"sep"
,
"maxsplit"
,
NULL
};
...
...
@@ -150,7 +150,7 @@ bytes_rsplit(PyBytesObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
sep
=
Py_None
;
Py_ssize_t
maxsplit
=
-
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
sep
,
&
maxsplit
))
{
goto
exit
;
}
...
...
@@ -281,14 +281,14 @@ PyDoc_STRVAR(bytes_translate__doc__,
"The remaining characters are mapped through the given translation table."
);
#define BYTES_TRANSLATE_METHODDEF \
{"translate", (PyCFunction)bytes_translate, METH_
VARARGS|METH_KEYWORDS
, bytes_translate__doc__},
{"translate", (PyCFunction)bytes_translate, METH_
FASTCALL
, bytes_translate__doc__},
static
PyObject
*
bytes_translate_impl
(
PyBytesObject
*
self
,
PyObject
*
table
,
PyObject
*
deletechars
);
static
PyObject
*
bytes_translate
(
PyBytesObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytes_translate
(
PyBytesObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
""
,
"delete"
,
NULL
};
...
...
@@ -296,7 +296,7 @@ bytes_translate(PyBytesObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
table
;
PyObject
*
deletechars
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
table
,
&
deletechars
))
{
goto
exit
;
}
...
...
@@ -412,14 +412,14 @@ PyDoc_STRVAR(bytes_decode__doc__,
" can handle UnicodeDecodeErrors."
);
#define BYTES_DECODE_METHODDEF \
{"decode", (PyCFunction)bytes_decode, METH_
VARARGS|METH_KEYWORDS
, bytes_decode__doc__},
{"decode", (PyCFunction)bytes_decode, METH_
FASTCALL
, bytes_decode__doc__},
static
PyObject
*
bytes_decode_impl
(
PyBytesObject
*
self
,
const
char
*
encoding
,
const
char
*
errors
);
static
PyObject
*
bytes_decode
(
PyBytesObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytes_decode
(
PyBytesObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"encoding"
,
"errors"
,
NULL
};
...
...
@@ -427,7 +427,7 @@ bytes_decode(PyBytesObject *self, PyObject *args, PyObject *kwargs)
const
char
*
encoding
=
NULL
;
const
char
*
errors
=
NULL
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
encoding
,
&
errors
))
{
goto
exit
;
}
...
...
@@ -447,20 +447,20 @@ PyDoc_STRVAR(bytes_splitlines__doc__,
"true."
);
#define BYTES_SPLITLINES_METHODDEF \
{"splitlines", (PyCFunction)bytes_splitlines, METH_
VARARGS|METH_KEYWORDS
, bytes_splitlines__doc__},
{"splitlines", (PyCFunction)bytes_splitlines, METH_
FASTCALL
, bytes_splitlines__doc__},
static
PyObject
*
bytes_splitlines_impl
(
PyBytesObject
*
self
,
int
keepends
);
static
PyObject
*
bytes_splitlines
(
PyBytesObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
bytes_splitlines
(
PyBytesObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"keepends"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|i:splitlines"
,
_keywords
,
0
};
int
keepends
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
keepends
))
{
goto
exit
;
}
...
...
@@ -499,4 +499,4 @@ bytes_fromhex(PyTypeObject *type, PyObject *arg)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
5618c05c24c1e617
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
2dc3c93cfd2dc440
input=a9049054013a1b77]*/
PC/clinic/winreg.c.h
View file @
37e4ef7b
...
...
@@ -77,14 +77,14 @@ PyDoc_STRVAR(winreg_HKEYType___exit____doc__,
"
\n
"
);
#define WINREG_HKEYTYPE___EXIT___METHODDEF \
{"__exit__", (PyCFunction)winreg_HKEYType___exit__, METH_
VARARGS|METH_KEYWORDS
, winreg_HKEYType___exit____doc__},
{"__exit__", (PyCFunction)winreg_HKEYType___exit__, METH_
FASTCALL
, winreg_HKEYType___exit____doc__},
static
PyObject
*
winreg_HKEYType___exit___impl
(
PyHKEYObject
*
self
,
PyObject
*
exc_type
,
PyObject
*
exc_value
,
PyObject
*
traceback
);
static
PyObject
*
winreg_HKEYType___exit__
(
PyHKEYObject
*
self
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winreg_HKEYType___exit__
(
PyHKEYObject
*
self
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"exc_type"
,
"exc_value"
,
"traceback"
,
NULL
};
...
...
@@ -93,7 +93,7 @@ winreg_HKEYType___exit__(PyHKEYObject *self, PyObject *args, PyObject *kwargs)
PyObject
*
exc_value
;
PyObject
*
traceback
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
exc_type
,
&
exc_value
,
&
traceback
))
{
goto
exit
;
}
...
...
@@ -235,14 +235,14 @@ PyDoc_STRVAR(winreg_CreateKeyEx__doc__,
"If the function fails, an OSError exception is raised."
);
#define WINREG_CREATEKEYEX_METHODDEF \
{"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_
VARARGS|METH_KEYWORDS
, winreg_CreateKeyEx__doc__},
{"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_
FASTCALL
, winreg_CreateKeyEx__doc__},
static
HKEY
winreg_CreateKeyEx_impl
(
PyObject
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
int
reserved
,
REGSAM
access
);
static
PyObject
*
winreg_CreateKeyEx
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winreg_CreateKeyEx
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"key"
,
"sub_key"
,
"reserved"
,
"access"
,
NULL
};
...
...
@@ -253,7 +253,7 @@ winreg_CreateKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM
access
=
KEY_WRITE
;
HKEY
_return_value
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
clinic_HKEY_converter
,
&
key
,
&
sub_key
,
&
reserved
,
&
access
))
{
goto
exit
;
}
...
...
@@ -334,14 +334,14 @@ PyDoc_STRVAR(winreg_DeleteKeyEx__doc__,
"On unsupported Windows versions, NotImplementedError is raised."
);
#define WINREG_DELETEKEYEX_METHODDEF \
{"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_
VARARGS|METH_KEYWORDS
, winreg_DeleteKeyEx__doc__},
{"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_
FASTCALL
, winreg_DeleteKeyEx__doc__},
static
PyObject
*
winreg_DeleteKeyEx_impl
(
PyObject
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
REGSAM
access
,
int
reserved
);
static
PyObject
*
winreg_DeleteKeyEx
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winreg_DeleteKeyEx
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"key"
,
"sub_key"
,
"access"
,
"reserved"
,
NULL
};
...
...
@@ -351,7 +351,7 @@ winreg_DeleteKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM
access
=
KEY_WOW64_64KEY
;
int
reserved
=
0
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
clinic_HKEY_converter
,
&
key
,
&
sub_key
,
&
access
,
&
reserved
))
{
goto
exit
;
}
...
...
@@ -620,14 +620,14 @@ PyDoc_STRVAR(winreg_OpenKey__doc__,
"If the function fails, an OSError exception is raised."
);
#define WINREG_OPENKEY_METHODDEF \
{"OpenKey", (PyCFunction)winreg_OpenKey, METH_
VARARGS|METH_KEYWORDS
, winreg_OpenKey__doc__},
{"OpenKey", (PyCFunction)winreg_OpenKey, METH_
FASTCALL
, winreg_OpenKey__doc__},
static
HKEY
winreg_OpenKey_impl
(
PyObject
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
int
reserved
,
REGSAM
access
);
static
PyObject
*
winreg_OpenKey
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winreg_OpenKey
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"key"
,
"sub_key"
,
"reserved"
,
"access"
,
NULL
};
...
...
@@ -638,7 +638,7 @@ winreg_OpenKey(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM
access
=
KEY_READ
;
HKEY
_return_value
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
clinic_HKEY_converter
,
&
key
,
&
sub_key
,
&
reserved
,
&
access
))
{
goto
exit
;
}
...
...
@@ -672,14 +672,14 @@ PyDoc_STRVAR(winreg_OpenKeyEx__doc__,
"If the function fails, an OSError exception is raised."
);
#define WINREG_OPENKEYEX_METHODDEF \
{"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_
VARARGS|METH_KEYWORDS
, winreg_OpenKeyEx__doc__},
{"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_
FASTCALL
, winreg_OpenKeyEx__doc__},
static
HKEY
winreg_OpenKeyEx_impl
(
PyObject
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
int
reserved
,
REGSAM
access
);
static
PyObject
*
winreg_OpenKeyEx
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winreg_OpenKeyEx
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"key"
,
"sub_key"
,
"reserved"
,
"access"
,
NULL
};
...
...
@@ -690,7 +690,7 @@ winreg_OpenKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM
access
=
KEY_READ
;
HKEY
_return_value
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
clinic_HKEY_converter
,
&
key
,
&
sub_key
,
&
reserved
,
&
access
))
{
goto
exit
;
}
...
...
@@ -1091,4 +1091,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
5b53d19cbe3f37cd
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
16dd06be6e14b86e
input=a9049054013a1b77]*/
PC/clinic/winsound.c.h
View file @
37e4ef7b
...
...
@@ -14,13 +14,13 @@ PyDoc_STRVAR(winsound_PlaySound__doc__,
" Flag values, ored together. See module documentation."
);
#define WINSOUND_PLAYSOUND_METHODDEF \
{"PlaySound", (PyCFunction)winsound_PlaySound, METH_
VARARGS|METH_KEYWORDS
, winsound_PlaySound__doc__},
{"PlaySound", (PyCFunction)winsound_PlaySound, METH_
FASTCALL
, winsound_PlaySound__doc__},
static
PyObject
*
winsound_PlaySound_impl
(
PyObject
*
module
,
PyObject
*
sound
,
int
flags
);
static
PyObject
*
winsound_PlaySound
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winsound_PlaySound
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"sound"
,
"flags"
,
NULL
};
...
...
@@ -28,7 +28,7 @@ winsound_PlaySound(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject
*
sound
;
int
flags
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
sound
,
&
flags
))
{
goto
exit
;
}
...
...
@@ -51,13 +51,13 @@ PyDoc_STRVAR(winsound_Beep__doc__,
" How long the sound should play, in milliseconds."
);
#define WINSOUND_BEEP_METHODDEF \
{"Beep", (PyCFunction)winsound_Beep, METH_
VARARGS|METH_KEYWORDS
, winsound_Beep__doc__},
{"Beep", (PyCFunction)winsound_Beep, METH_
FASTCALL
, winsound_Beep__doc__},
static
PyObject
*
winsound_Beep_impl
(
PyObject
*
module
,
int
frequency
,
int
duration
);
static
PyObject
*
winsound_Beep
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winsound_Beep
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"frequency"
,
"duration"
,
NULL
};
...
...
@@ -65,7 +65,7 @@ winsound_Beep(PyObject *module, PyObject *args, PyObject *kwargs)
int
frequency
;
int
duration
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
frequency
,
&
duration
))
{
goto
exit
;
}
...
...
@@ -84,20 +84,20 @@ PyDoc_STRVAR(winsound_MessageBeep__doc__,
"x defaults to MB_OK."
);
#define WINSOUND_MESSAGEBEEP_METHODDEF \
{"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_
VARARGS|METH_KEYWORDS
, winsound_MessageBeep__doc__},
{"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_
FASTCALL
, winsound_MessageBeep__doc__},
static
PyObject
*
winsound_MessageBeep_impl
(
PyObject
*
module
,
int
type
);
static
PyObject
*
winsound_MessageBeep
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
winsound_MessageBeep
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"type"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"|i:MessageBeep"
,
_keywords
,
0
};
int
type
=
MB_OK
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
type
))
{
goto
exit
;
}
...
...
@@ -106,4 +106,4 @@ winsound_MessageBeep(PyObject *module, PyObject *args, PyObject *kwargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
40b3d3ef2faefb15
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
bfe16b2b8b490cb1
input=a9049054013a1b77]*/
Python/clinic/bltinmodule.c.h
View file @
37e4ef7b
...
...
@@ -148,7 +148,7 @@ PyDoc_STRVAR(builtin_compile__doc__,
"in addition to any features explicitly specified."
);
#define BUILTIN_COMPILE_METHODDEF \
{"compile", (PyCFunction)builtin_compile, METH_
VARARGS|METH_KEYWORDS
, builtin_compile__doc__},
{"compile", (PyCFunction)builtin_compile, METH_
FASTCALL
, builtin_compile__doc__},
static
PyObject
*
builtin_compile_impl
(
PyObject
*
module
,
PyObject
*
source
,
PyObject
*
filename
,
...
...
@@ -156,7 +156,7 @@ builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
int
optimize
);
static
PyObject
*
builtin_compile
(
PyObject
*
module
,
PyObject
*
args
,
PyObject
*
kwarg
s
)
builtin_compile
(
PyObject
*
module
,
PyObject
*
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwname
s
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"source"
,
"filename"
,
"mode"
,
"flags"
,
"dont_inherit"
,
"optimize"
,
NULL
};
...
...
@@ -168,7 +168,7 @@ builtin_compile(PyObject *module, PyObject *args, PyObject *kwargs)
int
dont_inherit
=
0
;
int
optimize
=
-
1
;
if
(
!
_PyArg_Parse
TupleAndKeywordsFast
(
args
,
kwarg
s
,
&
_parser
,
if
(
!
_PyArg_Parse
Stack
(
args
,
nargs
,
kwname
s
,
&
_parser
,
&
source
,
PyUnicode_FSDecoder
,
&
filename
,
&
mode
,
&
flags
,
&
dont_inherit
,
&
optimize
))
{
goto
exit
;
}
...
...
@@ -674,4 +674,4 @@ builtin_issubclass(PyObject *module, PyObject *args)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
790cb3d26531dfda
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
63483deb75805f7c
input=a9049054013a1b77]*/
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