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
6add62f3
Commit
6add62f3
authored
Oct 15, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding reminders to self
parent
0915cbac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Compiler/UtilNodes.py
Cython/Compiler/UtilNodes.py
+5
-0
No files found.
Cython/Compiler/UtilNodes.py
View file @
6add62f3
...
@@ -10,6 +10,7 @@ from Nodes import Node
...
@@ -10,6 +10,7 @@ from Nodes import Node
from
ExprNodes
import
AtomicExprNode
from
ExprNodes
import
AtomicExprNode
class
TempHandle
(
object
):
class
TempHandle
(
object
):
# THIS IS DEPRECATED, USE LetRefNode instead
temp
=
None
temp
=
None
needs_xdecref
=
False
needs_xdecref
=
False
def
__init__
(
self
,
type
):
def
__init__
(
self
,
type
):
...
@@ -23,6 +24,7 @@ class TempHandle(object):
...
@@ -23,6 +24,7 @@ class TempHandle(object):
return
CleanupTempRefNode
(
pos
,
handle
=
self
,
type
=
self
.
type
)
return
CleanupTempRefNode
(
pos
,
handle
=
self
,
type
=
self
.
type
)
class
TempRefNode
(
AtomicExprNode
):
class
TempRefNode
(
AtomicExprNode
):
# THIS IS DEPRECATED, USE LetRefNode instead
# handle TempHandle
# handle TempHandle
def
analyse_types
(
self
,
env
):
def
analyse_types
(
self
,
env
):
...
@@ -52,6 +54,7 @@ class TempRefNode(AtomicExprNode):
...
@@ -52,6 +54,7 @@ class TempRefNode(AtomicExprNode):
rhs
.
free_temps
(
code
)
rhs
.
free_temps
(
code
)
class
CleanupTempRefNode
(
TempRefNode
):
class
CleanupTempRefNode
(
TempRefNode
):
# THIS IS DEPRECATED, USE LetRefNode instead
# handle TempHandle
# handle TempHandle
def
generate_assignment_code
(
self
,
rhs
,
code
):
def
generate_assignment_code
(
self
,
rhs
,
code
):
...
@@ -63,6 +66,8 @@ class CleanupTempRefNode(TempRefNode):
...
@@ -63,6 +66,8 @@ class CleanupTempRefNode(TempRefNode):
self
.
handle
.
needs_cleanup
=
False
self
.
handle
.
needs_cleanup
=
False
class
TempsBlockNode
(
Node
):
class
TempsBlockNode
(
Node
):
# THIS IS DEPRECATED, USE LetNode instead
"""
"""
Creates a block which allocates temporary variables.
Creates a block which allocates temporary variables.
This is used by transforms to output constructs that need
This is used by transforms to output constructs that need
...
...
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