Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
f040438e
Commit
f040438e
authored
Aug 21, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix function signature usage in CPy3.3 (non-public C-API function)
parent
2147dfae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Cython/Utility/StringTools.c
Cython/Utility/StringTools.c
+8
-0
No files found.
Cython/Utility/StringTools.c
View file @
f040438e
...
@@ -991,14 +991,22 @@ static PyObject* __Pyx_PyObject_Format(PyObject* obj, PyObject* format_spec) {
...
@@ -991,14 +991,22 @@ static PyObject* __Pyx_PyObject_Format(PyObject* obj, PyObject* format_spec) {
if
(
likely
(
PyFloat_CheckExact
(
obj
)))
{
if
(
likely
(
PyFloat_CheckExact
(
obj
)))
{
// copied from CPython 3.5 "float__format__()" in floatobject.c
// copied from CPython 3.5 "float__format__()" in floatobject.c
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x03040000
_PyUnicodeWriter_Init
(
&
writer
,
0
);
#else
_PyUnicodeWriter_Init
(
&
writer
);
_PyUnicodeWriter_Init
(
&
writer
);
#endif
ret
=
_PyFloat_FormatAdvancedWriter
(
ret
=
_PyFloat_FormatAdvancedWriter
(
&
writer
,
&
writer
,
obj
,
obj
,
format_spec
,
0
,
PyUnicode_GET_LENGTH
(
format_spec
));
format_spec
,
0
,
PyUnicode_GET_LENGTH
(
format_spec
));
}
else
if
(
likely
(
PyLong_CheckExact
(
obj
)))
{
}
else
if
(
likely
(
PyLong_CheckExact
(
obj
)))
{
// copied from CPython 3.5 "long__format__()" in longobject.c
// copied from CPython 3.5 "long__format__()" in longobject.c
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x03040000
_PyUnicodeWriter_Init
(
&
writer
,
0
);
#else
_PyUnicodeWriter_Init
(
&
writer
);
_PyUnicodeWriter_Init
(
&
writer
);
#endif
ret
=
_PyLong_FormatAdvancedWriter
(
ret
=
_PyLong_FormatAdvancedWriter
(
&
writer
,
&
writer
,
obj
,
obj
,
...
...
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