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
Kirill Smelkov
cython
Commits
92535fea
Commit
92535fea
authored
Aug 19, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix entry checking for functions (broken in last commit)
parent
0c5fa933
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+6
-4
No files found.
Cython/Compiler/ExprNodes.py
View file @
92535fea
...
@@ -3233,6 +3233,7 @@ class SimpleCallNode(CallNode):
...
@@ -3233,6 +3233,7 @@ class SimpleCallNode(CallNode):
self
.
type
=
PyrexTypes
.
CPtrType
(
self
.
function
.
class_type
)
self
.
type
=
PyrexTypes
.
CPtrType
(
self
.
function
.
class_type
)
else
:
else
:
self
.
type
=
func_type
.
return_type
self
.
type
=
func_type
.
return_type
if
self
.
function
.
is_name
or
self
.
function
.
is_attribute
:
if
self
.
function
.
entry
and
self
.
function
.
entry
.
utility_code
:
if
self
.
function
.
entry
and
self
.
function
.
entry
.
utility_code
:
self
.
is_temp
=
1
# currently doesn't work for self.calculate_result_code()
self
.
is_temp
=
1
# currently doesn't work for self.calculate_result_code()
if
self
.
type
.
is_pyobject
:
if
self
.
type
.
is_pyobject
:
...
@@ -3287,6 +3288,7 @@ class SimpleCallNode(CallNode):
...
@@ -3287,6 +3288,7 @@ class SimpleCallNode(CallNode):
def
generate_result_code
(
self
,
code
):
def
generate_result_code
(
self
,
code
):
func_type
=
self
.
function_type
()
func_type
=
self
.
function_type
()
if
self
.
function
.
is_name
or
self
.
function
.
is_attribute
:
if
self
.
function
.
entry
and
self
.
function
.
entry
.
utility_code
:
if
self
.
function
.
entry
and
self
.
function
.
entry
.
utility_code
:
code
.
globalstate
.
use_utility_code
(
self
.
function
.
entry
.
utility_code
)
code
.
globalstate
.
use_utility_code
(
self
.
function
.
entry
.
utility_code
)
if
func_type
.
is_pyobject
:
if
func_type
.
is_pyobject
:
...
...
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