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
76735bd2
Commit
76735bd2
authored
Jan 23, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more empty_tuple usage
parent
d40225f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+7
-10
No files found.
Cython/Compiler/Nodes.py
View file @
76735bd2
...
...
@@ -3615,7 +3615,6 @@ static void __Pyx_AddTraceback(char *funcname) {
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
PyObject *py_globals = 0;
PyObject *empty_tuple = 0;
PyObject *empty_string = 0;
PyCodeObject *py_code = 0;
PyFrameObject *py_frame = 0;
...
...
@@ -3626,8 +3625,6 @@ static void __Pyx_AddTraceback(char *funcname) {
if (!py_funcname) goto bad;
py_globals = PyModule_GetDict(%(GLOBALS)s);
if (!py_globals) goto bad;
empty_tuple = PyTuple_New(0);
if (!empty_tuple) goto bad;
empty_string = PyString_FromString("");
if (!empty_string) goto bad;
py_code = PyCode_New(
...
...
@@ -3636,11 +3633,11 @@ static void __Pyx_AddTraceback(char *funcname) {
0, /*int stacksize,*/
0, /*int flags,*/
empty_string, /*PyObject *code,*/
empty_tuple
, /*PyObject *consts,*/
empty_tuple
, /*PyObject *names,*/
empty_tuple
, /*PyObject *varnames,*/
empty_tuple
, /*PyObject *freevars,*/
empty_tuple
, /*PyObject *cellvars,*/
%(EMPTY_TUPLE)s
, /*PyObject *consts,*/
%(EMPTY_TUPLE)s
, /*PyObject *names,*/
%(EMPTY_TUPLE)s
, /*PyObject *varnames,*/
%(EMPTY_TUPLE)s
, /*PyObject *freevars,*/
%(EMPTY_TUPLE)s
, /*PyObject *cellvars,*/
py_srcfile, /*PyObject *filename,*/
py_funcname, /*PyObject *name,*/
%(LINENO)s, /*int firstlineno,*/
...
...
@@ -3659,7 +3656,6 @@ static void __Pyx_AddTraceback(char *funcname) {
bad:
Py_XDECREF(py_srcfile);
Py_XDECREF(py_funcname);
Py_XDECREF(empty_tuple);
Py_XDECREF(empty_string);
Py_XDECREF(py_code);
Py_XDECREF(py_frame);
...
...
@@ -3667,7 +3663,8 @@ bad:
"""
%
{
'FILENAME'
:
Naming
.
filename_cname
,
'LINENO'
:
Naming
.
lineno_cname
,
'GLOBALS'
:
Naming
.
module_cname
'GLOBALS'
:
Naming
.
module_cname
,
'EMPTY_TUPLE'
:
Naming
.
empty_tuple
,
}]
#------------------------------------------------------------------------------------
...
...
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