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
9a238cb7
Commit
9a238cb7
authored
Mar 09, 2012
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few warnings from system GCC 4.2.1 in OS X 10.7.3
parent
84311ceb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+3
-3
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Utility/Buffer.c
Cython/Utility/Buffer.c
+1
-1
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+2
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
9a238cb7
...
@@ -811,8 +811,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -811,8 +811,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if
not
method_entry
.
is_inherited
and
method_entry
.
final_func_cname
:
if
not
method_entry
.
is_inherited
and
method_entry
.
final_func_cname
:
declaration
=
method_entry
.
type
.
declaration_code
(
declaration
=
method_entry
.
type
.
declaration_code
(
method_entry
.
final_func_cname
)
method_entry
.
final_func_cname
)
if
entry
.
func_modifiers
:
if
method_
entry
.
func_modifiers
:
modifiers
=
"%s "
%
' '
.
join
(
entry
.
func_modifiers
).
upper
()
modifiers
=
"%s "
%
' '
.
join
(
method_
entry
.
func_modifiers
).
upper
()
else
:
else
:
modifiers
=
''
modifiers
=
''
code
.
putln
(
"static %s%s;"
%
(
modifiers
,
declaration
))
code
.
putln
(
"static %s%s;"
%
(
modifiers
,
declaration
))
...
@@ -2924,4 +2924,4 @@ packed_struct_utility_code = UtilityCode(proto="""
...
@@ -2924,4 +2924,4 @@ packed_struct_utility_code = UtilityCode(proto="""
#endif
#endif
"""
,
impl
=
""
,
proto_block
=
'utility_code_proto_before_types'
)
"""
,
impl
=
""
,
proto_block
=
'utility_code_proto_before_types'
)
capsule_utility_code
=
UtilityCode
.
load
(
"Capsule"
)
capsule_utility_code
=
UtilityCode
.
load
(
"Capsule"
)
\ No newline at end of file
Cython/Compiler/Nodes.py
View file @
9a238cb7
...
@@ -4258,7 +4258,7 @@ class OverrideCheckNode(StatNode):
...
@@ -4258,7 +4258,7 @@ class OverrideCheckNode(StatNode):
func_node_temp
,
self_arg
,
interned_attr_cname
,
err
))
func_node_temp
,
self_arg
,
interned_attr_cname
,
err
))
code
.
put_gotref
(
func_node_temp
)
code
.
put_gotref
(
func_node_temp
)
is_builtin_function_or_method
=
"PyCFunction_Check(%s)"
%
func_node_temp
is_builtin_function_or_method
=
"PyCFunction_Check(%s)"
%
func_node_temp
is_overridden
=
"(PyCFunction_GET_FUNCTION(%s) != (
void *)&
%s)"
%
(
is_overridden
=
"(PyCFunction_GET_FUNCTION(%s) != (
PyCFunction)
%s)"
%
(
func_node_temp
,
self
.
py_func
.
entry
.
func_cname
)
func_node_temp
,
self
.
py_func
.
entry
.
func_cname
)
code
.
putln
(
"if (!%s || %s) {"
%
(
is_builtin_function_or_method
,
is_overridden
))
code
.
putln
(
"if (!%s || %s) {"
%
(
is_builtin_function_or_method
,
is_overridden
))
self
.
body
.
generate_execution_code
(
code
)
self
.
body
.
generate_execution_code
(
code
)
...
...
Cython/Utility/Buffer.c
View file @
9a238cb7
...
@@ -161,7 +161,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) {
...
@@ -161,7 +161,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) {
{{
for
type_ptr
,
getbuffer
,
releasebuffer
in
types
}}
{{
for
type_ptr
,
getbuffer
,
releasebuffer
in
types
}}
{{
if
releasebuffer
}}
{{
if
releasebuffer
}}
if
(
PyObject_TypeCheck
(
obj
,
{{
type_ptr
}}))
return
{{
releasebuffer
}}(
obj
,
view
);
if
(
PyObject_TypeCheck
(
obj
,
{{
type_ptr
}}))
{
{{
releasebuffer
}}(
obj
,
view
);
return
;
}
{{
endif
}}
{{
endif
}}
{{
endfor
}}
{{
endfor
}}
...
...
Cython/Utility/CythonFunction.c
View file @
9a238cb7
...
@@ -385,10 +385,10 @@ __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
...
@@ -385,10 +385,10 @@ __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
#if PY_MAJOR_VERSION >= 3
#if PY_MAJOR_VERSION >= 3
return
PyUnicode_FromFormat
(
"<cyfunction %U at %p>"
,
return
PyUnicode_FromFormat
(
"<cyfunction %U at %p>"
,
func_name
,
op
);
func_name
,
(
void
*
)
op
);
#else
#else
return
PyString_FromFormat
(
"<cyfunction %s at %p>"
,
return
PyString_FromFormat
(
"<cyfunction %s at %p>"
,
PyString_AsString
(
func_name
),
op
);
PyString_AsString
(
func_name
),
(
void
*
)
op
);
#endif
#endif
}
}
...
...
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