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
Gwenaël Samain
cython
Commits
83740a00
Commit
83740a00
authored
Feb 16, 2009
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes in order to silent GCC warnings about unused stuff
parent
f9c7772b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
tests/compile/cnamespec.pyx
tests/compile/cnamespec.pyx
+3
-0
tests/compile/funcptr.pyx
tests/compile/funcptr.pyx
+4
-0
tests/run/for_decrement.pyx
tests/run/for_decrement.pyx
+2
-2
No files found.
tests/compile/cnamespec.pyx
View file @
83740a00
...
@@ -15,3 +15,6 @@ cdef double spam "c_spam" (int i, float f):
...
@@ -15,3 +15,6 @@ cdef double spam "c_spam" (int i, float f):
b
=
p
.
i
b
=
p
.
i
p
.
i
=
x
p
.
i
=
x
p
.
i
=
y
p
.
i
=
y
cdef
inline
double
spam2
"c_spam2"
(
int
i
,
float
f
):
return
spam
(
i
,
f
)
tests/compile/funcptr.pyx
View file @
83740a00
...
@@ -4,3 +4,7 @@ cdef int grail():
...
@@ -4,3 +4,7 @@ cdef int grail():
spam
=
grail
spam
=
grail
spam
()
spam
()
ctypedef
int
funcptr_t
()
cdef
inline
funcptr_t
*
dummy
():
return
&
grail
tests/run/for_decrement.pyx
View file @
83740a00
...
@@ -23,7 +23,7 @@ def range_loop_indices():
...
@@ -23,7 +23,7 @@ def range_loop_indices():
Optimized integer for loops using range() should follow Python behavior,
Optimized integer for loops using range() should follow Python behavior,
and leave the index variable with the last value of the range.
and leave the index variable with the last value of the range.
"""
"""
cdef
int
i
,
j
,
k
,
l
,
m
cdef
int
i
,
j
,
k
=
0
,
l
,
m
for
i
in
range
(
10
):
pass
for
i
in
range
(
10
):
pass
for
j
in
range
(
2
,
10
):
pass
for
j
in
range
(
2
,
10
):
pass
for
k
in
range
(
0
,
10
,
get_step
()):
pass
for
k
in
range
(
0
,
10
,
get_step
()):
pass
...
...
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