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
d0d38fed
Commit
d0d38fed
authored
Aug 11, 2009
by
Kurt Smith
Committed by
Mark Florisson
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead code in MemoryView.py
parent
433c0789
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
Cython/Compiler/MemoryView.py
Cython/Compiler/MemoryView.py
+0
-20
No files found.
Cython/Compiler/MemoryView.py
View file @
d0d38fed
...
...
@@ -45,26 +45,6 @@ def specs_to_code(specs):
arr
.
append
(
"(%s | %s)"
%
(
_spec_to_const
[
access
],
_spec_to_const
[
packing
]))
return
arr
# XXX: add complex support below...
_typename_to_format
=
{
'char'
:
'c'
,
'signed char'
:
'b'
,
'unsigned char'
:
'B'
,
'short'
:
'h'
,
'unsigned short'
:
'H'
,
'int'
:
'i'
,
'unsigned int'
:
'I'
,
'long'
:
'l'
,
'unsigned long'
:
'L'
,
'long long'
:
'q'
,
'unsigned long long'
:
'Q'
,
'float'
:
'f'
,
'double'
:
'd'
,
}
def
format_from_type
(
base_type
):
return
_typename_to_format
[
base_type
.
sign_and_name
()]
def
put_init_entry
(
mv_cname
,
code
):
code
.
putln
(
"%s.data = NULL;"
%
mv_cname
)
code
.
putln
(
"%s.memview = NULL;"
%
mv_cname
)
...
...
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