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
13d0f030
Commit
13d0f030
authored
Mar 09, 2010
by
Craig Citro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arithmatic -> arithmetic
parent
bb076b09
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+2
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-2
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+1
-1
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+2
-2
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+1
-1
No files found.
Cython/Compiler/Main.py
View file @
13d0f030
...
@@ -88,7 +88,7 @@ class Context(object):
...
@@ -88,7 +88,7 @@ class Context(object):
from
ParseTreeTransforms
import
AnalyseDeclarationsTransform
,
AnalyseExpressionsTransform
from
ParseTreeTransforms
import
AnalyseDeclarationsTransform
,
AnalyseExpressionsTransform
from
ParseTreeTransforms
import
CreateClosureClasses
,
MarkClosureVisitor
,
DecoratorTransform
from
ParseTreeTransforms
import
CreateClosureClasses
,
MarkClosureVisitor
,
DecoratorTransform
from
ParseTreeTransforms
import
InterpretCompilerDirectives
,
TransformBuiltinMethods
from
ParseTreeTransforms
import
InterpretCompilerDirectives
,
TransformBuiltinMethods
from
TypeInference
import
MarkAssignments
,
MarkOverflowingArithm
a
tic
from
TypeInference
import
MarkAssignments
,
MarkOverflowingArithm
e
tic
from
ParseTreeTransforms
import
AlignFunctionDefinitions
,
GilCheck
from
ParseTreeTransforms
import
AlignFunctionDefinitions
,
GilCheck
from
AnalysedTreeTransforms
import
AutoTestDictTransform
from
AnalysedTreeTransforms
import
AutoTestDictTransform
from
AutoDocTransforms
import
EmbedSignature
from
AutoDocTransforms
import
EmbedSignature
...
@@ -135,7 +135,7 @@ class Context(object):
...
@@ -135,7 +135,7 @@ class Context(object):
EmbedSignature
(
self
),
EmbedSignature
(
self
),
EarlyReplaceBuiltinCalls
(
self
),
EarlyReplaceBuiltinCalls
(
self
),
MarkAssignments
(
self
),
MarkAssignments
(
self
),
MarkOverflowingArithm
a
tic
(
self
),
MarkOverflowingArithm
e
tic
(
self
),
TransformBuiltinMethods
(
self
),
TransformBuiltinMethods
(
self
),
IntroduceBufferAuxiliaryVars
(
self
),
IntroduceBufferAuxiliaryVars
(
self
),
_check_c_declarations
,
_check_c_declarations
,
...
...
Cython/Compiler/Nodes.py
View file @
13d0f030
...
@@ -3292,7 +3292,7 @@ class ParallelAssignmentNode(AssignmentNode):
...
@@ -3292,7 +3292,7 @@ class ParallelAssignmentNode(AssignmentNode):
class
InPlaceAssignmentNode
(
AssignmentNode
):
class
InPlaceAssignmentNode
(
AssignmentNode
):
# An in place arithm
a
tic operand:
# An in place arithm
e
tic operand:
#
#
# a += b
# a += b
# a -= b
# a -= b
...
...
Cython/Compiler/PyrexTypes.py
View file @
13d0f030
...
@@ -999,7 +999,7 @@ class CComplexType(CNumericType):
...
@@ -999,7 +999,7 @@ class CComplexType(CNumericType):
env
.
use_utility_code
(
complex_real_imag_utility_code
)
env
.
use_utility_code
(
complex_real_imag_utility_code
)
for
utility_code
in
(
complex_type_utility_code
,
for
utility_code
in
(
complex_type_utility_code
,
complex_from_parts_utility_code
,
complex_from_parts_utility_code
,
complex_arithm
a
tic_utility_code
):
complex_arithm
e
tic_utility_code
):
env
.
use_utility_code
(
env
.
use_utility_code
(
utility_code
.
specialize
(
utility_code
.
specialize
(
self
,
self
,
...
@@ -1168,7 +1168,7 @@ static %(type)s __Pyx_PyComplex_As_%(type_name)s(PyObject* o) {
...
@@ -1168,7 +1168,7 @@ static %(type)s __Pyx_PyComplex_As_%(type_name)s(PyObject* o) {
}
}
"""
)
"""
)
complex_arithm
a
tic_utility_code
=
UtilityCode
(
complex_arithm
e
tic_utility_code
=
UtilityCode
(
proto
=
"""
proto
=
"""
#if CYTHON_CCOMPLEX
#if CYTHON_CCOMPLEX
#define __Pyx_c_eq%(m)s(a, b) ((a)==(b))
#define __Pyx_c_eq%(m)s(a, b) ((a)==(b))
...
...
Cython/Compiler/Symtab.py
View file @
13d0f030
...
@@ -119,7 +119,7 @@ class Entry(object):
...
@@ -119,7 +119,7 @@ class Entry(object):
# inline_func_in_pxd boolean Hacky special case for inline function in pxd file.
# inline_func_in_pxd boolean Hacky special case for inline function in pxd file.
# Ideally this should not be necesarry.
# Ideally this should not be necesarry.
# assignments [ExprNode] List of expressions that get assigned to this entry.
# assignments [ExprNode] List of expressions that get assigned to this entry.
# might_overflow boolean In an arithm
a
tic expression that could cause
# might_overflow boolean In an arithm
e
tic expression that could cause
# overflow (used for type inference).
# overflow (used for type inference).
inline_func_in_pxd = False
inline_func_in_pxd = False
...
...
Cython/Compiler/TypeInference.py
View file @
13d0f030
...
@@ -112,7 +112,7 @@ class MarkAssignments(CythonTransform):
...
@@ -112,7 +112,7 @@ class MarkAssignments(CythonTransform):
self
.
visitchildren
(
node
)
self
.
visitchildren
(
node
)
return
node
return
node
class
MarkOverflowingArithm
a
tic
(
CythonTransform
):
class
MarkOverflowingArithm
e
tic
(
CythonTransform
):
# It may be possible to integrate this with the above for
# It may be possible to integrate this with the above for
# performance improvements (though likely not worth it).
# performance improvements (though likely not worth it).
...
@@ -122,7 +122,7 @@ class MarkOverflowingArithmatic(CythonTransform):
...
@@ -122,7 +122,7 @@ class MarkOverflowingArithmatic(CythonTransform):
def
__call__
(
self
,
root
):
def
__call__
(
self
,
root
):
self
.
env_stack
=
[]
self
.
env_stack
=
[]
self
.
env
=
root
.
scope
self
.
env
=
root
.
scope
return
super
(
MarkOverflowingArithm
a
tic
,
self
).
__call__
(
root
)
return
super
(
MarkOverflowingArithm
e
tic
,
self
).
__call__
(
root
)
def
visit_safe_node
(
self
,
node
):
def
visit_safe_node
(
self
,
node
):
self
.
might_overflow
,
saved
=
False
,
self
.
might_overflow
self
.
might_overflow
,
saved
=
False
,
self
.
might_overflow
...
...
tests/run/type_inference.pyx
View file @
13d0f030
...
@@ -261,7 +261,7 @@ def safe_only():
...
@@ -261,7 +261,7 @@ def safe_only():
res
=
~
d
res
=
~
d
assert
typeof
(
d
)
==
"long"
,
typeof
(
d
)
assert
typeof
(
d
)
==
"long"
,
typeof
(
d
)
# potentially overflowing arithm
a
tic
# potentially overflowing arithm
e
tic
e
=
1
e
=
1
e
+=
1
e
+=
1
assert
typeof
(
e
)
==
"Python object"
,
typeof
(
e
)
assert
typeof
(
e
)
==
"Python object"
,
typeof
(
e
)
...
...
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