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
6b9f9037
Commit
6b9f9037
authored
Mar 28, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some trivial nodes to new temps
parent
eaebdfa3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+8
-8
No files found.
Cython/Compiler/ExprNodes.py
View file @
6b9f9037
...
@@ -1424,7 +1424,7 @@ class NameNode(AtomicNewTempExprNode):
...
@@ -1424,7 +1424,7 @@ class NameNode(AtomicNewTempExprNode):
else
:
else
:
code
.
annotate
(
pos
,
AnnotationItem
(
'c_call'
,
'c function'
,
size
=
len
(
self
.
name
)))
code
.
annotate
(
pos
,
AnnotationItem
(
'c_call'
,
'c function'
,
size
=
len
(
self
.
name
)))
class
BackquoteNode
(
ExprNode
):
class
BackquoteNode
(
NewTemp
ExprNode
):
# `expr`
# `expr`
#
#
# arg ExprNode
# arg ExprNode
...
@@ -1452,7 +1452,7 @@ class BackquoteNode(ExprNode):
...
@@ -1452,7 +1452,7 @@ class BackquoteNode(ExprNode):
class
ImportNode
(
ExprNode
):
class
ImportNode
(
NewTemp
ExprNode
):
# Used as part of import statement implementation.
# Used as part of import statement implementation.
# Implements result =
# Implements result =
# __import__(module_name, globals(), None, name_list)
# __import__(module_name, globals(), None, name_list)
...
@@ -2600,7 +2600,7 @@ class GeneralCallNode(CallNode):
...
@@ -2600,7 +2600,7 @@ class GeneralCallNode(CallNode):
code
.
put_gotref
(
self
.
py_result
())
code
.
put_gotref
(
self
.
py_result
())
class
AsTupleNode
(
ExprNode
):
class
AsTupleNode
(
NewTemp
ExprNode
):
# Convert argument to tuple. Used for normalising
# Convert argument to tuple. Used for normalising
# the * argument of a function call.
# the * argument of a function call.
#
#
...
@@ -3610,7 +3610,7 @@ class ClassNode(ExprNode):
...
@@ -3610,7 +3610,7 @@ class ClassNode(ExprNode):
code
.
put_gotref
(
self
.
py_result
())
code
.
put_gotref
(
self
.
py_result
())
class
UnboundMethodNode
(
ExprNode
):
class
UnboundMethodNode
(
NewTemp
ExprNode
):
# Helper class used in the implementation of Python
# Helper class used in the implementation of Python
# class definitions. Constructs an unbound method
# class definitions. Constructs an unbound method
# object from a class and a function.
# object from a class and a function.
...
@@ -3670,7 +3670,7 @@ compile_time_unary_operators = {
...
@@ -3670,7 +3670,7 @@ compile_time_unary_operators = {
'+'
:
operator
.
pos
,
'+'
:
operator
.
pos
,
}
}
class
UnopNode
(
ExprNode
):
class
UnopNode
(
NewTemp
ExprNode
):
# operator string
# operator string
# operand ExprNode
# operand ExprNode
#
#
...
@@ -3746,7 +3746,7 @@ class UnopNode(ExprNode):
...
@@ -3746,7 +3746,7 @@ class UnopNode(ExprNode):
self
.
type
=
PyrexTypes
.
error_type
self
.
type
=
PyrexTypes
.
error_type
class
NotNode
(
ExprNode
):
class
NotNode
(
NewTemp
ExprNode
):
# 'not' operator
# 'not' operator
#
#
# operand ExprNode
# operand ExprNode
...
@@ -3824,7 +3824,7 @@ class TildeNode(UnopNode):
...
@@ -3824,7 +3824,7 @@ class TildeNode(UnopNode):
return
"(~%s)"
%
self
.
operand
.
result
()
return
"(~%s)"
%
self
.
operand
.
result
()
class
AmpersandNode
(
ExprNode
):
class
AmpersandNode
(
NewTemp
ExprNode
):
# The C address-of operator.
# The C address-of operator.
#
#
# operand ExprNode
# operand ExprNode
...
@@ -3950,7 +3950,7 @@ class TypecastNode(NewTempExprNode):
...
@@ -3950,7 +3950,7 @@ class TypecastNode(NewTempExprNode):
code
.
put_incref
(
self
.
result
(),
self
.
ctype
())
code
.
put_incref
(
self
.
result
(),
self
.
ctype
())
class
SizeofNode
(
ExprNode
):
class
SizeofNode
(
NewTemp
ExprNode
):
# Abstract base class for sizeof(x) expression nodes.
# Abstract base class for sizeof(x) expression nodes.
type
=
PyrexTypes
.
c_size_t_type
type
=
PyrexTypes
.
c_size_t_type
...
...
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