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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
7e004e0a
Commit
7e004e0a
authored
Apr 03, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid C compiler warning when refnanny is not used.
parent
a6986a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+11
-3
No files found.
Cython/Utility/ObjectHandling.c
View file @
7e004e0a
...
@@ -2563,12 +2563,16 @@ static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, CYTHON_UNUSE
...
@@ -2563,12 +2563,16 @@ static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, CYTHON_UNUSE
#if CYTHON_REFNANNY
#if CYTHON_REFNANNY
#define __Pyx_PyUnicode_ConcatInPlace(left, right) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, __pyx_refnanny)
#define __Pyx_PyUnicode_ConcatInPlace(left, right) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, __pyx_refnanny)
#else
#else
#define __Pyx_PyUnicode_ConcatInPlace(left, right) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right
, NULL
)
#define __Pyx_PyUnicode_ConcatInPlace(left, right) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right)
#endif
#endif
// __Pyx_PyUnicode_ConcatInPlace is slightly odd because it has the potential to modify the input
// __Pyx_PyUnicode_ConcatInPlace is slightly odd because it has the potential to modify the input
// argument (but only in cases where no user should notice). Therefore, it needs to keep Cython's
// argument (but only in cases where no user should notice). Therefore, it needs to keep Cython's
// refnanny informed.
// refnanny informed.
static
CYTHON_INLINE
PyObject
*
__Pyx_PyUnicode_ConcatInPlaceImpl
(
PyObject
**
p_left
,
PyObject
*
right
,
void
*
__pyx_refnanny
);
/* proto */
static
CYTHON_INLINE
PyObject
*
__Pyx_PyUnicode_ConcatInPlaceImpl
(
PyObject
**
p_left
,
PyObject
*
right
#if CYTHON_REFNANNY
,
void
*
__pyx_refnanny
#endif
);
/* proto */
#else
#else
#define __Pyx_PyUnicode_ConcatInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_ConcatInPlace __Pyx_PyUnicode_Concat
#endif
#endif
...
@@ -2595,7 +2599,11 @@ __Pyx_unicode_modifiable(PyObject *unicode)
...
@@ -2595,7 +2599,11 @@ __Pyx_unicode_modifiable(PyObject *unicode)
return
1
;
return
1
;
}
}
static
CYTHON_INLINE
PyObject
*
__Pyx_PyUnicode_ConcatInPlaceImpl
(
PyObject
**
p_left
,
PyObject
*
right
,
void
*
__pyx_refnanny
)
{
static
CYTHON_INLINE
PyObject
*
__Pyx_PyUnicode_ConcatInPlaceImpl
(
PyObject
**
p_left
,
PyObject
*
right
#if CYTHON_REFNANNY
,
void
*
__pyx_refnanny
#endif
)
{
// heavily based on PyUnicode_Append
// heavily based on PyUnicode_Append
PyObject
*
left
=
*
p_left
;
PyObject
*
left
=
*
p_left
;
Py_ssize_t
left_len
,
right_len
,
new_len
;
Py_ssize_t
left_len
,
right_len
,
new_len
;
...
...
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