Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
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
Kirill Smelkov
shrapnel
Commits
4618e186
Commit
4618e186
authored
May 25, 2014
by
Mark Peek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some cython warnings
parent
9472b008
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
coro/_coro.pyx
coro/_coro.pyx
+6
-2
coro/poller.pyx
coro/poller.pyx
+2
-1
coro/profile.pyx
coro/profile.pyx
+2
-1
coro/socket.pyx
coro/socket.pyx
+2
-1
No files found.
coro/_coro.pyx
View file @
4618e186
...
@@ -70,8 +70,12 @@ cdef extern from "Python.h":
...
@@ -70,8 +70,12 @@ cdef extern from "Python.h":
ctypedef
struct
PyThreadState
:
ctypedef
struct
PyThreadState
:
PyFrameObject
*
frame
PyFrameObject
*
frame
int
recursion_depth
int
recursion_depth
void
*
curexc_type
,
*
curexc_value
,
*
curexc_traceback
void
*
curexc_type
void
*
exc_type
,
*
exc_value
,
*
exc_traceback
void
*
curexc_value
void
*
curexc_traceback
void
*
exc_type
void
*
exc_value
void
*
exc_traceback
PyThreadState
*
_PyThreadState_Current
PyThreadState
*
_PyThreadState_Current
# ================================================================================
# ================================================================================
...
...
coro/poller.pyx
View file @
4618e186
...
@@ -482,7 +482,8 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
...
@@ -482,7 +482,8 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
def
poll
(
self
,
timeout
=
(
30
,
0
),
int
nevents
=
2000
):
def
poll
(
self
,
timeout
=
(
30
,
0
),
int
nevents
=
2000
):
cdef
timespec
ts
cdef
timespec
ts
cdef
int
r
,
i
cdef
int
r
,
i
cdef
kevent
*
events
,
*
k
cdef
kevent
*
events
cdef
kevent
*
k
cdef
coro
co
cdef
coro
co
cdef
kevent_target
kt
cdef
kevent_target
kt
cdef
kevent_key
kk
cdef
kevent_key
kk
...
...
coro/profile.pyx
View file @
4618e186
...
@@ -715,7 +715,8 @@ cdef class _profiler:
...
@@ -715,7 +715,8 @@ cdef class _profiler:
cdef
int
dispatch
(
self
,
_frame
*
frame
,
int
what
,
void
*
arg
)
except
-
1
:
cdef
int
dispatch
(
self
,
_frame
*
frame
,
int
what
,
void
*
arg
)
except
-
1
:
"""The main profiler dispatch called by Python."""
"""The main profiler dispatch called by Python."""
cdef
call_stack
*
top
,
*
link
cdef
call_stack
*
top
cdef
call_stack
*
link
# top may be NULL when a coro first starts.
# top may be NULL when a coro first starts.
top
=
(
<
coro
>
the_scheduler
.
_current
).
top
top
=
(
<
coro
>
the_scheduler
.
_current
).
top
if
what
==
PyTrace_CALL
:
if
what
==
PyTrace_CALL
:
...
...
coro/socket.pyx
View file @
4618e186
...
@@ -494,7 +494,8 @@ cdef public class sock [ object sock_object, type sock_type ]:
...
@@ -494,7 +494,8 @@ cdef public class sock [ object sock_object, type sock_type ]:
:raises EOFError: Not all data could be read. The first argument
:raises EOFError: Not all data could be read. The first argument
includes any partial data read as a string.
includes any partial data read as a string.
"""
"""
cdef
char
*
p
,
*
p0
cdef
char
*
p
cdef
char
*
p0
cdef
int
r
cdef
int
r
cdef
bytes
buffer
cdef
bytes
buffer
...
...
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