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
e2e92024
Commit
e2e92024
authored
Aug 11, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added 'except +' and 'nogil' declarations to shipped STL constructors
parent
3218a24e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
29 deletions
+29
-29
Cython/Includes/libcpp/deque.pxd
Cython/Includes/libcpp/deque.pxd
+4
-4
Cython/Includes/libcpp/list.pxd
Cython/Includes/libcpp/list.pxd
+3
-3
Cython/Includes/libcpp/map.pxd
Cython/Includes/libcpp/map.pxd
+2
-2
Cython/Includes/libcpp/queue.pxd
Cython/Includes/libcpp/queue.pxd
+4
-4
Cython/Includes/libcpp/set.pxd
Cython/Includes/libcpp/set.pxd
+2
-2
Cython/Includes/libcpp/stack.pxd
Cython/Includes/libcpp/stack.pxd
+2
-2
Cython/Includes/libcpp/string.pxd
Cython/Includes/libcpp/string.pxd
+5
-5
Cython/Includes/libcpp/utility.pxd
Cython/Includes/libcpp/utility.pxd
+3
-3
Cython/Includes/libcpp/vector.pxd
Cython/Includes/libcpp/vector.pxd
+4
-4
No files found.
Cython/Includes/libcpp/deque.pxd
View file @
e2e92024
...
@@ -18,10 +18,10 @@ cdef extern from "<deque>" namespace "std":
...
@@ -18,10 +18,10 @@ cdef extern from "<deque>" namespace "std":
# pass
# pass
#cppclass const_reverse_iterator(reverse_iterator):
#cppclass const_reverse_iterator(reverse_iterator):
# pass
# pass
deque
()
deque
()
nogil
except
+
deque
(
deque
&
)
deque
(
deque
&
)
nogil
except
+
deque
(
size_t
)
deque
(
size_t
)
nogil
except
+
deque
(
size_t
,
T
&
)
deque
(
size_t
,
T
&
)
nogil
except
+
#deque[input_iterator](input_iterator, input_iterator)
#deque[input_iterator](input_iterator, input_iterator)
T
&
operator
[](
size_t
)
nogil
T
&
operator
[](
size_t
)
nogil
#deque& operator=(deque&)
#deque& operator=(deque&)
...
...
Cython/Includes/libcpp/list.pxd
View file @
e2e92024
...
@@ -16,9 +16,9 @@ cdef extern from "<list>" namespace "std":
...
@@ -16,9 +16,9 @@ cdef extern from "<list>" namespace "std":
# pass
# pass
#cppclass const_reverse_iterator(reverse_iterator):
#cppclass const_reverse_iterator(reverse_iterator):
# pass
# pass
list
()
list
()
nogil
except
+
list
(
list
&
)
list
(
list
&
)
nogil
except
+
list
(
size_t
,
T
&
)
list
(
size_t
,
T
&
)
nogil
except
+
#list operator=(list&)
#list operator=(list&)
bint
operator
==
(
list
&
,
list
&
)
nogil
bint
operator
==
(
list
&
,
list
&
)
nogil
bint
operator
!=
(
list
&
,
list
&
)
nogil
bint
operator
!=
(
list
&
,
list
&
)
nogil
...
...
Cython/Includes/libcpp/map.pxd
View file @
e2e92024
...
@@ -18,8 +18,8 @@ cdef extern from "<map>" namespace "std":
...
@@ -18,8 +18,8 @@ cdef extern from "<map>" namespace "std":
# pass
# pass
#cppclass const_reverse_iterator(reverse_iterator):
#cppclass const_reverse_iterator(reverse_iterator):
# pass
# pass
map
()
map
()
nogil
except
+
map
(
map
&
)
map
(
map
&
)
nogil
except
+
#map(key_compare&)
#map(key_compare&)
U
&
operator
[](
T
&
)
nogil
U
&
operator
[](
T
&
)
nogil
#map& operator=(map&)
#map& operator=(map&)
...
...
Cython/Includes/libcpp/queue.pxd
View file @
e2e92024
cdef
extern
from
"<queue>"
namespace
"std"
:
cdef
extern
from
"<queue>"
namespace
"std"
:
cdef
cppclass
queue
[
T
]:
cdef
cppclass
queue
[
T
]:
queue
()
queue
()
nogil
except
+
queue
(
queue
&
)
queue
(
queue
&
)
nogil
except
+
#queue(Container&)
#queue(Container&)
T
&
back
()
nogil
T
&
back
()
nogil
bint
empty
()
nogil
bint
empty
()
nogil
...
@@ -10,8 +10,8 @@ cdef extern from "<queue>" namespace "std":
...
@@ -10,8 +10,8 @@ cdef extern from "<queue>" namespace "std":
void
push
(
T
&
)
nogil
void
push
(
T
&
)
nogil
size_t
size
()
nogil
size_t
size
()
nogil
cdef
cppclass
priority_queue
[
T
]:
cdef
cppclass
priority_queue
[
T
]:
priority_queue
()
priority_queue
()
nogil
except
+
priority_queue
(
priority_queue
&
)
priority_queue
(
priority_queue
&
)
nogil
except
+
#priority_queue(Container&)
#priority_queue(Container&)
bint
empty
()
nogil
bint
empty
()
nogil
void
pop
()
nogil
void
pop
()
nogil
...
...
Cython/Includes/libcpp/set.pxd
View file @
e2e92024
...
@@ -18,8 +18,8 @@ cdef extern from "<set>" namespace "std":
...
@@ -18,8 +18,8 @@ cdef extern from "<set>" namespace "std":
# pass
# pass
#cppclass const_reverse_iterator(reverse_iterator):
#cppclass const_reverse_iterator(reverse_iterator):
# pass
# pass
set
()
nogil
set
()
nogil
except
+
set
(
set
&
)
nogil
set
(
set
&
)
nogil
except
+
#set(key_compare&)
#set(key_compare&)
#set& operator=(set&)
#set& operator=(set&)
bint
operator
==
(
set
&
,
set
&
)
nogil
bint
operator
==
(
set
&
,
set
&
)
nogil
...
...
Cython/Includes/libcpp/stack.pxd
View file @
e2e92024
cdef
extern
from
"<stack>"
namespace
"std"
:
cdef
extern
from
"<stack>"
namespace
"std"
:
cdef
cppclass
stack
[
T
]:
cdef
cppclass
stack
[
T
]:
stack
()
stack
()
nogil
except
+
stack
(
stack
&
)
stack
(
stack
&
)
nogil
except
+
#stack(Container&)
#stack(Container&)
bint
empty
()
nogil
bint
empty
()
nogil
void
pop
()
nogil
void
pop
()
nogil
...
...
Cython/Includes/libcpp/string.pxd
View file @
e2e92024
...
@@ -5,12 +5,12 @@ cdef extern from "<string>" namespace "std":
...
@@ -5,12 +5,12 @@ cdef extern from "<string>" namespace "std":
size_t
npos
=
-
1
size_t
npos
=
-
1
cdef
cppclass
string
:
cdef
cppclass
string
:
string
()
string
()
nogil
except
+
string
(
char
*
)
string
(
char
*
)
nogil
except
+
string
(
char
*
,
size_t
)
string
(
char
*
,
size_t
)
nogil
except
+
string
(
string
&
)
string
(
string
&
)
nogil
except
+
# as a string formed by a repetition of character c, n times.
# as a string formed by a repetition of character c, n times.
string
(
size_t
,
char
)
string
(
size_t
,
char
)
nogil
except
+
const_char
*
c_str
()
nogil
const_char
*
c_str
()
nogil
const_char
*
data
()
nogil
const_char
*
data
()
nogil
...
...
Cython/Includes/libcpp/utility.pxd
View file @
e2e92024
...
@@ -2,9 +2,9 @@ cdef extern from "<utility>" namespace "std":
...
@@ -2,9 +2,9 @@ cdef extern from "<utility>" namespace "std":
cdef
cppclass
pair
[
T
,
U
]:
cdef
cppclass
pair
[
T
,
U
]:
T
first
T
first
U
second
U
second
pair
()
pair
()
nogil
except
+
pair
(
pair
&
)
pair
(
pair
&
)
nogil
except
+
pair
(
T
&
,
U
&
)
pair
(
T
&
,
U
&
)
nogil
except
+
bint
operator
==
(
pair
&
,
pair
&
)
nogil
bint
operator
==
(
pair
&
,
pair
&
)
nogil
bint
operator
!=
(
pair
&
,
pair
&
)
nogil
bint
operator
!=
(
pair
&
,
pair
&
)
nogil
bint
operator
<
(
pair
&
,
pair
&
)
nogil
bint
operator
<
(
pair
&
,
pair
&
)
nogil
...
...
Cython/Includes/libcpp/vector.pxd
View file @
e2e92024
...
@@ -24,10 +24,10 @@ cdef extern from "<vector>" namespace "std":
...
@@ -24,10 +24,10 @@ cdef extern from "<vector>" namespace "std":
# pass
# pass
#cppclass const_reverse_iterator(reverse_iterator):
#cppclass const_reverse_iterator(reverse_iterator):
# pass
# pass
vector
()
vector
()
nogil
except
+
vector
(
vector
&
)
nogil
vector
(
vector
&
)
nogil
except
+
vector
(
size_t
)
nogil
vector
(
size_t
)
nogil
except
+
vector
(
size_t
,
T
&
)
nogil
vector
(
size_t
,
T
&
)
nogil
except
+
#vector[input_iterator](input_iterator, input_iterator)
#vector[input_iterator](input_iterator, input_iterator)
T
&
operator
[](
size_t
)
nogil
T
&
operator
[](
size_t
)
nogil
#vector& operator=(vector&)
#vector& operator=(vector&)
...
...
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