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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
13648de7
Commit
13648de7
authored
Apr 02, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unique NULL.
parent
a13fab25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Cython/Shadow.py
Cython/Shadow.py
+3
-4
No files found.
Cython/Shadow.py
View file @
13648de7
...
...
@@ -109,7 +109,7 @@ class PointerType(CythonType):
self
.
_items
=
[
cast
(
self
.
_basetype
,
a
)
for
a
in
value
.
_items
]
elif
isinstance
(
value
,
list
):
self
.
_items
=
[
cast
(
self
.
_basetype
,
a
)
for
a
in
value
]
elif
value
is
None
:
elif
value
is
None
or
value
is
0
:
self
.
_items
=
[]
else
:
raise
ValueError
...
...
@@ -130,7 +130,7 @@ class PointerType(CythonType):
elif
type
(
self
)
!=
type
(
value
):
return
False
else
:
return
self
.
_items
==
value
.
_items
return
not
self
.
_items
and
not
value
.
_items
class
ArrayType
(
PointerType
):
...
...
@@ -273,5 +273,4 @@ for t in int_types + float_types + complex_types + other_types:
gs
[
"%s_%s"
%
(
'p'
*
i
,
t
)]
=
globals
()[
t
].
_pointer
(
i
)
void
=
typedef
(
None
)
NULL
=
None
NULL
=
p_void
(
0
)
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