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
461323b6
Commit
461323b6
authored
Feb 03, 2009
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refnanny extension module does not need to export functions as public
parent
868fa3db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
Cython/Runtime/refnanny.pyx
Cython/Runtime/refnanny.pyx
+8
-9
No files found.
Cython/Runtime/refnanny.pyx
View file @
461323b6
...
...
@@ -62,7 +62,7 @@ cdef void* Refnanny_NewContext(char* funcname, int lineno) except NULL:
Py_INCREF
(
ctx
)
return
<
void
*>
ctx
cdef
public
void
Refnanny_GOTREF
(
void
*
ctx
,
void
*
p_obj
,
int
lineno
):
cdef
void
Refnanny_GOTREF
(
void
*
ctx
,
void
*
p_obj
,
int
lineno
):
cdef
exc
.
PyObject
*
type
=
NULL
,
*
value
=
NULL
,
*
tb
=
NULL
if
ctx
==
NULL
:
return
exc
.
PyErr_Fetch
(
&
type
,
&
value
,
&
tb
)
...
...
@@ -78,7 +78,7 @@ cdef public void Refnanny_GOTREF(void* ctx, void* p_obj, int lineno):
Py_XDECREF
(
<
object
>
tb
)
raise
cdef
public
void
Refnanny_GIVEREF
(
void
*
ctx
,
void
*
p_obj
,
int
lineno
):
cdef
void
Refnanny_GIVEREF
(
void
*
ctx
,
void
*
p_obj
,
int
lineno
):
cdef
exc
.
PyObject
*
type
=
NULL
,
*
value
=
NULL
,
*
tb
=
NULL
if
ctx
==
NULL
:
return
exc
.
PyErr_Fetch
(
&
type
,
&
value
,
&
tb
)
...
...
@@ -94,17 +94,16 @@ cdef public void Refnanny_GIVEREF(void* ctx, void* p_obj, int lineno):
Py_XDECREF
(
<
object
>
tb
)
raise
cdef
public
void
Refnanny_INCREF
(
void
*
ctx
,
void
*
obj
,
int
lineno
):
cdef
void
Refnanny_INCREF
(
void
*
ctx
,
void
*
obj
,
int
lineno
):
if
obj
is
not
NULL
:
Py_INCREF
(
<
object
>
obj
)
Refnanny_GOTREF
(
ctx
,
obj
,
lineno
)
cdef
public
void
Refnanny_DECREF
(
void
*
ctx
,
void
*
obj
,
int
lineno
):
cdef
void
Refnanny_DECREF
(
void
*
ctx
,
void
*
obj
,
int
lineno
):
# GIVEREF raises exception if we hit 0
#
Refnanny_GIVEREF
(
ctx
,
obj
,
lineno
)
if
obj
is
not
NULL
:
Py_DECREF
(
<
object
>
obj
)
cdef
public
int
Refnanny_FinishContext
(
void
*
ctx
)
except
-
1
:
cdef
int
Refnanny_FinishContext
(
void
*
ctx
)
except
-
1
:
cdef
exc
.
PyObject
*
type
=
NULL
,
*
value
=
NULL
,
*
tb
=
NULL
if
ctx
==
NULL
:
assert
False
...
...
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