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
6f11bc12
Commit
6f11bc12
authored
Mar 10, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code
parent
1bf1536c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+0
-16
No files found.
Cython/Compiler/PyrexTypes.py
View file @
6f11bc12
...
...
@@ -46,7 +46,6 @@ class PyrexType(BaseType):
# is_buffer boolean Is buffer access type
# has_attributes boolean Has C dot-selectable attributes
# default_value string Initial value
# parsetuple_format string Format char for PyArg_ParseTuple
# pymemberdef_typecode string Type code for PyMemberDef struct
#
# declaration_code(entity_code,
...
...
@@ -97,7 +96,6 @@ class PyrexType(BaseType):
is_buffer
=
0
has_attributes
=
0
default_value
=
""
parsetuple_format
=
""
pymemberdef_typecode
=
None
def
resolve
(
self
):
...
...
@@ -236,7 +234,6 @@ class PyObjectType(PyrexType):
is_pyobject
=
1
default_value
=
"0"
parsetuple_format
=
"O"
pymemberdef_typecode
=
"T_OBJECT"
buffer_defaults
=
None
...
...
@@ -463,21 +460,11 @@ class CNumericType(CType):
is_numeric
=
1
default_value
=
"0"
parsetuple_formats
=
(
# rank -> format
"BHIk??K???"
,
# unsigned
"bhil??Lfd?"
,
# assumed signed
"bhil??Lfd?"
,
# explicitly signed
)
sign_words
=
(
"unsigned "
,
""
,
"signed "
)
def
__init__
(
self
,
rank
,
signed
=
1
,
pymemberdef_typecode
=
None
):
self
.
rank
=
rank
self
.
signed
=
signed
ptf
=
self
.
parsetuple_formats
[
signed
][
rank
]
if
ptf
==
'?'
:
ptf
=
None
self
.
parsetuple_format
=
ptf
self
.
pymemberdef_typecode
=
pymemberdef_typecode
def
sign_and_name
(
self
):
...
...
@@ -1104,7 +1091,6 @@ class CStringType:
class
CUTF8CharArrayType
(
CStringType
,
CArrayType
):
# C 'char []' type.
parsetuple_format
=
"s"
pymemberdef_typecode
=
"T_STRING_INPLACE"
is_unicode
=
1
...
...
@@ -1117,7 +1103,6 @@ class CUTF8CharArrayType(CStringType, CArrayType):
class
CCharArrayType
(
CStringType
,
CArrayType
):
# C 'char []' type.
parsetuple_format
=
"s"
pymemberdef_typecode
=
"T_STRING_INPLACE"
def
__init__
(
self
,
size
):
...
...
@@ -1127,7 +1112,6 @@ class CCharArrayType(CStringType, CArrayType):
class
CCharPtrType
(
CStringType
,
CPtrType
):
# C 'char *' type.
parsetuple_format
=
"s"
pymemberdef_typecode
=
"T_STRING"
def
__init__
(
self
):
...
...
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