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
f8e75a14
Commit
f8e75a14
authored
Oct 27, 2007
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error handling code was missing
parent
94292508
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+4
-2
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+2
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
f8e75a14
...
...
@@ -166,9 +166,11 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
entry
.
name
,
entry
.
cname
,
sig
))
h_code
.
putln
(
"Py_DECREF(module);"
)
h_code
.
putln
(
"Py_DECREF(module);
module = 0;
"
)
for
entry
in
public_extension_types
:
self
.
generate_type_import_call
(
entry
.
type
,
h_code
,
"goto bad;"
)
self
.
generate_type_import_call
(
entry
.
type
,
h_code
,
"if (!%s) goto bad;"
%
entry
.
type
.
typeptr_cname
)
h_code
.
putln
(
"return 0;"
)
h_code
.
putln
(
"bad:"
)
h_code
.
putln
(
"Py_XDECREF(module);"
)
...
...
Cython/Compiler/Options.py
View file @
f8e75a14
...
...
@@ -3,7 +3,7 @@
#
intern_names
=
1
# Intern global variable and attribute names
cache_builtins
=
1
# Perform lookups on builtin names only once
cache_builtins
=
0
# Perform lookups on builtin names only once
embed_pos_in_docstring
=
0
gcc_branch_hints
=
1
...
...
@@ -18,4 +18,4 @@ incref_local_binop = 0
# Decref global variables in this module on exit for garbage collection.
# 0: None, 1+: interned objects, 2+: cdef globals, 3+: types objects
generate_cleanup_code
=
1
generate_cleanup_code
=
0
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