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
f256c22f
Commit
f256c22f
authored
Jan 25, 2014
by
Larry Hastings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for catestrophic errors in previous checkin (Argument Clinic rollup patch).
parent
c2047264
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1562 additions
and
1328 deletions
+1562
-1328
Modules/_bz2module.c
Modules/_bz2module.c
+3
-1
Modules/_lzmamodule.c
Modules/_lzmamodule.c
+1389
-0
Modules/audioop.c
Modules/audioop.c
+1
-1
Modules/binascii.c
Modules/binascii.c
+1
-1
Modules/clinic/_bz2module.c.h
Modules/clinic/_bz2module.c.h
+4
-7
Modules/clinic/_lzmamodule.c.h
Modules/clinic/_lzmamodule.c.h
+159
-1317
Tools/clinic/clinic.py
Tools/clinic/clinic.py
+5
-1
No files found.
Modules/_bz2module.c
View file @
f256c22f
...
...
@@ -56,6 +56,8 @@ typedef struct {
#endif
}
BZ2Decompressor
;
static
PyTypeObject
BZ2Compressor_Type
;
static
PyTypeObject
BZ2Decompressor_Type
;
/* Helper functions. */
...
...
@@ -204,7 +206,7 @@ class _bz2.BZ2Decompressor "BZ2Decompressor *" "&BZ2Decompressor_Type"
[clinic start generated code]*/
/*[clinic end generated code: checksum=da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
#include "
_bz2module.clinic.c
"
#include "
clinic/_bz2module.c.h
"
/*[clinic input]
_bz2.BZ2Compressor.compress
...
...
Modules/_lzmamodule.c
0 → 100644
View file @
f256c22f
This diff is collapsed.
Click to expand it.
Modules/audioop.c
View file @
f256c22f
...
...
@@ -1812,7 +1812,7 @@ audioop_adpcm2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width, PyOb
return
rv
;
}
#include "
audioop.clinic.c
"
#include "
clinic/audioop.c.h
"
static
PyMethodDef
audioop_methods
[]
=
{
AUDIOOP_MAX_METHODDEF
...
...
Modules/binascii.c
View file @
f256c22f
...
...
@@ -236,7 +236,7 @@ ascii_buffer_converter(PyObject *arg, Py_buffer *buf)
return
Py_CLEANUP_SUPPORTED
;
}
#include "
binascii.clinic.c
"
#include "
clinic/binascii.c.h
"
/*[clinic input]
binascii.a2b_uu
...
...
Modules/clinic/_bz2module.c.h
View file @
f256c22f
...
...
@@ -75,8 +75,7 @@ _bz2_BZ2Compressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
int
return_value
=
-
1
;
int
compresslevel
=
9
;
if
(({
self_name
}
==
{
self_type_object
})
&&
!
_PyArg_NoKeywords
(
"BZ2Compressor"
,
kwargs
))
if
(
!
_PyArg_NoKeywords
(
"BZ2Compressor"
,
kwargs
))
goto
exit
;
if
(
!
PyArg_ParseTuple
(
args
,
"|i:BZ2Compressor"
,
...
...
@@ -138,15 +137,13 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
{
int
return_value
=
-
1
;
if
(({
self_name
}
==
{
self_type_object
})
&&
!
_PyArg_NoPositional
(
"BZ2Decompressor"
,
args
))
if
(
!
_PyArg_NoPositional
(
"BZ2Decompressor"
,
args
))
goto
exit
;
if
(({
self_name
}
==
{
self_type_object
})
&&
!
_PyArg_NoKeywords
(
"BZ2Decompressor"
,
kwargs
))
if
(
!
_PyArg_NoKeywords
(
"BZ2Decompressor"
,
kwargs
))
goto
exit
;
return_value
=
_bz2_BZ2Decompressor___init___impl
((
BZ2Decompressor
*
)
self
);
exit:
return
return_value
;
}
/*[clinic end generated code: checksum=
79ee0d9731dfe404baec35b704b2ca2179b9a6c0
]*/
/*[clinic end generated code: checksum=
9bb33ae7d35494b7a5365f03f390e4b5b8b1bc49
]*/
Modules/clinic/_lzmamodule.c.h
View file @
f256c22f
This diff is collapsed.
Click to expand it.
Tools/clinic/clinic.py
View file @
f256c22f
...
...
@@ -2593,7 +2593,11 @@ class self_converter(CConverter):
def
set_template_dict
(
self
,
template_dict
):
template_dict
[
'self_name'
]
=
self
.
name
template_dict
[
'self_type'
]
=
self
.
parser_type
template_dict
[
'self_type_check'
]
=
'({self_name} == {self_type_object}) &&
\
n
'
if
((
self
.
function
.
kind
==
METHOD_NEW
)
and
self
.
function
.
cls
and
self
.
function
.
cls
.
typedef
):
template_dict
[
'self_type_object'
]
=
self
.
function
.
cls
.
type_object
template_dict
[
'self_type_check'
]
=
'({self_name} == {self_type_object}) &&
\
n
'
.
format_map
(
template_dict
)
...
...
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