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
ec25a63e
Commit
ec25a63e
authored
Jan 17, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
7035d3e1
279557ca
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
126 additions
and
134 deletions
+126
-134
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+6
-6
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+3
-3
Cython/Plex/Regexps.py
Cython/Plex/Regexps.py
+1
-1
pyximport/pyxbuild.py
pyximport/pyxbuild.py
+1
-1
pyximport/pyximport.py
pyximport/pyximport.py
+114
-122
No files found.
Cython/Compiler/ExprNodes.py
View file @
ec25a63e
...
...
@@ -2353,12 +2353,12 @@ class SimpleCallNode(CallNode):
"Python object cannot be passed as a varargs parameter"
)
# Calc result type and code fragment
self
.
type
=
func_type
.
return_type
if
self
.
type
.
is_pyobject
\
or
func_type
.
exception_value
is
not
None
\
or
func_type
.
exception_check
:
self
.
is_temp
=
1
if
self
.
type
.
is_pyobject
:
self
.
result_ctype
=
py_object_type
if
self
.
type
.
is_pyobject
:
self
.
result_ctype
=
py_object_type
self
.
is_temp
=
1
elif
func_type
.
exception_value
is
not
None
\
or
func_type
.
exception_check
:
self
.
is_temp
=
1
# C++ exception handler
if
func_type
.
exception_check
==
'+'
:
if
func_type
.
exception_value
is
None
:
...
...
Cython/Compiler/PyrexTypes.py
View file @
ec25a63e
...
...
@@ -517,7 +517,7 @@ class CIntType(CNumericType):
c_type
=
self
.
sign_and_name
()
c_name
=
c_type
.
replace
(
' '
,
'_'
);
func_name
=
"__pyx_PyInt_%s"
%
c_name
;
if
not
int_conversion_list
.
has_key
(
func_name
)
:
if
func_name
not
in
int_conversion_list
:
# no env to add utility code to
global
type_conversion_predeclarations
,
type_conversion_functions
if
self
.
signed
:
...
...
Cython/Compiler/Symtab.py
View file @
ec25a63e
...
...
@@ -282,8 +282,8 @@ class Scope:
if not self.in_cinclude and cname and re.match("
^
_
[
_A
-
Z
]
+
$
", cname):
# See http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html#Reserved-Names
warning(pos, "'%s'
is
a
reserved
name
in
C
.
" % cname, -1)
dict
= self.entries
if name and
dict.has_key(name)
:
entries
= self.entries
if name and
name in entries
:
if visibility == 'extern':
warning(pos, "'%s'
redeclared
" % name, 0)
elif visibility != 'ignore':
...
...
@@ -292,7 +292,7 @@ class Scope:
entry.in_cinclude = self.in_cinclude
if name:
entry.qualified_name = self.qualify_name(name)
dict
[name] = entry
entries
[name] = entry
entry.scope = self
entry.visibility = visibility
return entry
...
...
Cython/Plex/Regexps.py
View file @
ec25a63e
...
...
@@ -83,7 +83,7 @@ def CodeRanges(code_list):
re_list
=
[]
for
i
in
xrange
(
0
,
len
(
code_list
),
2
):
re_list
.
append
(
CodeRange
(
code_list
[
i
],
code_list
[
i
+
1
]))
return
apply
(
Alt
,
tuple
(
re_list
)
)
return
Alt
(
*
re_list
)
def
CodeRange
(
code1
,
code2
):
"""
...
...
pyximport/pyxbuild.py
View file @
ec25a63e
...
...
@@ -3,7 +3,7 @@ the installed distutils infrastructure. Call:
out_fname = pyx_to_dll("foo.pyx")
"""
import
os
,
md5
import
os
import
distutils
from
distutils.dist
import
Distribution
...
...
pyximport/pyximport.py
View file @
ec25a63e
This diff is collapsed.
Click to expand it.
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