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
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
Hide 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:
...
@@ -62,7 +62,7 @@ cdef void* Refnanny_NewContext(char* funcname, int lineno) except NULL:
Py_INCREF
(
ctx
)
Py_INCREF
(
ctx
)
return
<
void
*>
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
cdef
exc
.
PyObject
*
type
=
NULL
,
*
value
=
NULL
,
*
tb
=
NULL
if
ctx
==
NULL
:
return
if
ctx
==
NULL
:
return
exc
.
PyErr_Fetch
(
&
type
,
&
value
,
&
tb
)
exc
.
PyErr_Fetch
(
&
type
,
&
value
,
&
tb
)
...
@@ -78,7 +78,7 @@ cdef public void Refnanny_GOTREF(void* ctx, void* p_obj, int lineno):
...
@@ -78,7 +78,7 @@ cdef public void Refnanny_GOTREF(void* ctx, void* p_obj, int lineno):
Py_XDECREF
(
<
object
>
tb
)
Py_XDECREF
(
<
object
>
tb
)
raise
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
cdef
exc
.
PyObject
*
type
=
NULL
,
*
value
=
NULL
,
*
tb
=
NULL
if
ctx
==
NULL
:
return
if
ctx
==
NULL
:
return
exc
.
PyErr_Fetch
(
&
type
,
&
value
,
&
tb
)
exc
.
PyErr_Fetch
(
&
type
,
&
value
,
&
tb
)
...
@@ -94,17 +94,16 @@ cdef public void Refnanny_GIVEREF(void* ctx, void* p_obj, int lineno):
...
@@ -94,17 +94,16 @@ cdef public void Refnanny_GIVEREF(void* ctx, void* p_obj, int lineno):
Py_XDECREF
(
<
object
>
tb
)
Py_XDECREF
(
<
object
>
tb
)
raise
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
)
if
obj
is
not
NULL
:
Py_INCREF
(
<
object
>
obj
)
Refnanny_GOTREF
(
ctx
,
obj
,
lineno
)
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
# GIVEREF raises exception if we hit 0
#
Refnanny_GIVEREF
(
ctx
,
obj
,
lineno
)
Refnanny_GIVEREF
(
ctx
,
obj
,
lineno
)
if
obj
is
not
NULL
:
Py_DECREF
(
<
object
>
obj
)
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
cdef
exc
.
PyObject
*
type
=
NULL
,
*
value
=
NULL
,
*
tb
=
NULL
if
ctx
==
NULL
:
if
ctx
==
NULL
:
assert
False
assert
False
...
@@ -122,7 +121,7 @@ cdef public int Refnanny_FinishContext(void* ctx) except -1:
...
@@ -122,7 +121,7 @@ cdef public int Refnanny_FinishContext(void* ctx) except -1:
Py_XDECREF
(
obj
)
Py_XDECREF
(
obj
)
return
0
return
0
cdef
extern
from
"Python.h"
:
cdef
extern
from
"Python.h"
:
...
...
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