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
a743c371
Commit
a743c371
authored
Jul 08, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code simplification
parent
46cd487c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+0
-6
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
a743c371
...
@@ -10029,9 +10029,3 @@ proto="""
...
@@ -10029,9 +10029,3 @@ proto="""
#define UNARY_NEG_WOULD_OVERFLOW(x)
\
#define UNARY_NEG_WOULD_OVERFLOW(x)
\
(((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))
(((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))
"""
)
"""
)
generator_utility_code
=
UtilityCode
.
load
(
"Generator"
,
"Generator.c"
,
requires
=
[
Nodes
.
raise_utility_code
,
Nodes
.
swap_exception_utility_code
],
)
Cython/Compiler/Nodes.py
View file @
a743c371
...
@@ -3560,8 +3560,7 @@ class GeneratorDefNode(DefNode):
...
@@ -3560,8 +3560,7 @@ class GeneratorDefNode(DefNode):
code
.
putln
(
'}'
)
code
.
putln
(
'}'
)
def
generate_function_definitions
(
self
,
env
,
code
):
def
generate_function_definitions
(
self
,
env
,
code
):
from
ExprNodes
import
generator_utility_code
env
.
use_utility_code
(
UtilityCode
.
load_cached
(
"Generator"
,
"Generator.c"
))
env
.
use_utility_code
(
generator_utility_code
)
self
.
gbody
.
generate_function_header
(
code
,
proto
=
True
)
self
.
gbody
.
generate_function_header
(
code
,
proto
=
True
)
super
(
GeneratorDefNode
,
self
).
generate_function_definitions
(
env
,
code
)
super
(
GeneratorDefNode
,
self
).
generate_function_definitions
(
env
,
code
)
...
...
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