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
92fe0278
Commit
92fe0278
authored
Feb 12, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
...
parents
7c69d631
cb6cebbd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
151 additions
and
54 deletions
+151
-54
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+145
-50
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
92fe0278
...
@@ -577,7 +577,7 @@ class BoolNode(PyConstNode):
...
@@ -577,7 +577,7 @@ class BoolNode(PyConstNode):
# The constant value True or False
# The constant value True or False
def
compile_time_value
(
self
,
denv
):
def
compile_time_value
(
self
,
denv
):
return
Non
e
return
self
.
valu
e
def
calculate_result_code
(
self
):
def
calculate_result_code
(
self
):
if
self
.
value
:
if
self
.
value
:
...
...
Cython/Compiler/Nodes.py
View file @
92fe0278
This diff is collapsed.
Click to expand it.
Cython/Compiler/Parsing.py
View file @
92fe0278
...
@@ -1302,7 +1302,7 @@ def p_IF_statement(s, level, cdef_flag, visibility, api):
...
@@ -1302,7 +1302,7 @@ def p_IF_statement(s, level, cdef_flag, visibility, api):
if
current_eval
:
if
current_eval
:
result
=
body
result
=
body
if
not
result
:
if
not
result
:
result
=
PassStatNode
(
pos
)
result
=
Nodes
.
PassStatNode
(
pos
)
s
.
compile_time_eval
=
saved_eval
s
.
compile_time_eval
=
saved_eval
return
result
return
result
...
...
Cython/Compiler/PyrexTypes.py
View file @
92fe0278
...
@@ -1129,8 +1129,9 @@ static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x) {
...
@@ -1129,8 +1129,9 @@ static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x) {
return PyLong_AsLongLong(x);
return PyLong_AsLongLong(x);
}
}
else {
else {
PY_LONG_LONG val;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
PY_LONG_LONG
val = __pyx_PyInt_AsLongLong(tmp);
val = __pyx_PyInt_AsLongLong(tmp);
Py_DECREF(tmp);
Py_DECREF(tmp);
return val;
return val;
}
}
...
@@ -1149,8 +1150,9 @@ static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x)
...
@@ -1149,8 +1150,9 @@ static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x)
return PyLong_AsUnsignedLongLong(x);
return PyLong_AsUnsignedLongLong(x);
}
}
else {
else {
PY_LONG_LONG val;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
PY_LONG_LONG
val = __pyx_PyInt_AsUnsignedLongLong(tmp);
val = __pyx_PyInt_AsUnsignedLongLong(tmp);
Py_DECREF(tmp);
Py_DECREF(tmp);
return val;
return val;
}
}
...
...
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