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
Xavier Thompson
cython
Commits
d034fdd0
Commit
d034fdd0
authored
Jul 14, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
863b50c3
' into release
parents
85453e66
863b50c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+1
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-2
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+1
-1
Cython/Utility/Profile.c
Cython/Utility/Profile.c
+2
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
d034fdd0
...
@@ -701,7 +701,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -701,7 +701,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
PyrexTypes
.
c_int_type
.
create_from_py_utility_code
(
env
)
PyrexTypes
.
c_int_type
.
create_from_py_utility_code
(
env
)
code
.
put
(
Nodes
.
branch_prediction_macros
)
code
.
put
(
Nodes
.
branch_prediction_macros
)
code
.
putln
(
'static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) {}'
)
code
.
putln
(
'static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) {
(void)ptr;
}'
)
code
.
putln
(
''
)
code
.
putln
(
''
)
code
.
putln
(
'static PyObject *%s;'
%
env
.
module_cname
)
code
.
putln
(
'static PyObject *%s;'
%
env
.
module_cname
)
code
.
putln
(
'static PyObject *%s;'
%
env
.
module_dict_cname
)
code
.
putln
(
'static PyObject *%s;'
%
env
.
module_dict_cname
)
...
...
Cython/Compiler/Nodes.py
View file @
d034fdd0
...
@@ -1841,8 +1841,8 @@ class FuncDefNode(StatNode, BlockNode):
...
@@ -1841,8 +1841,8 @@ class FuncDefNode(StatNode, BlockNode):
# Scope unconditionally DECREFed on return.
# Scope unconditionally DECREFed on return.
code
.
putln
(
"%s = %s;"
%
(
code
.
putln
(
"%s = %s;"
%
(
Naming
.
cur_scope_cname
,
Naming
.
cur_scope_cname
,
lenv
.
scope_class
.
type
.
cast_code
(
"Py_None"
)))
;
lenv
.
scope_class
.
type
.
cast_code
(
"Py_None"
)))
code
.
put_incref
(
"Py_None"
,
py_object_type
)
;
code
.
put_incref
(
"Py_None"
,
py_object_type
)
code
.
putln
(
code
.
error_goto
(
self
.
pos
))
code
.
putln
(
code
.
error_goto
(
self
.
pos
))
code
.
putln
(
"} else {"
)
code
.
putln
(
"} else {"
)
code
.
put_gotref
(
Naming
.
cur_scope_cname
)
code
.
put_gotref
(
Naming
.
cur_scope_cname
)
...
...
Cython/Utility/Optimize.c
View file @
d034fdd0
...
@@ -229,7 +229,7 @@ static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *ke
...
@@ -229,7 +229,7 @@ static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *ke
PyObject
*
value
;
PyObject
*
value
;
#if PY_VERSION_HEX >= 0x030400A0
#if PY_VERSION_HEX >= 0x030400A0
// we keep the method call at the end to avoid "unused" C compiler warnings
// we keep the method call at the end to avoid "unused" C compiler warnings
if
(
1
)
{
if
(
(
1
)
)
{
value
=
PyDict_SetDefault
(
d
,
key
,
default_value
);
value
=
PyDict_SetDefault
(
d
,
key
,
default_value
);
if
(
unlikely
(
!
value
))
return
NULL
;
if
(
unlikely
(
!
value
))
return
NULL
;
Py_INCREF
(
value
);
Py_INCREF
(
value
);
...
...
Cython/Utility/Profile.c
View file @
d034fdd0
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
#define __Pyx_TraceDeclarations
#define __Pyx_TraceDeclarations
#define __Pyx_TraceFrameInit(codeobj)
#define __Pyx_TraceFrameInit(codeobj)
// mark error label as used to avoid compiler warnings
// mark error label as used to avoid compiler warnings
#define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) if (
1
); else goto_error;
#define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) if (
(1)
); else goto_error;
#define __Pyx_TraceException()
#define __Pyx_TraceException()
#define __Pyx_TraceReturn(result, nogil)
#define __Pyx_TraceReturn(result, nogil)
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
#endif
#endif
#else
#else
// mark error label as used to avoid compiler warnings
// mark error label as used to avoid compiler warnings
#define __Pyx_TraceLine(lineno, nogil, goto_error) if (
1
); else goto_error;
#define __Pyx_TraceLine(lineno, nogil, goto_error) if (
(1)
); else goto_error;
#endif
#endif
/////////////// Profile ///////////////
/////////////// Profile ///////////////
...
...
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