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
Boxiang Sun
cython
Commits
e2edd243
Commit
e2edd243
authored
Mar 14, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #197 from bfroehle/memview_static
BUG: Avoid exporting symbols in MemoryView utility code.
parents
1d770737
4c6e0db0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+8
-8
No files found.
Cython/Utility/MemoryView_C.c
View file @
e2edd243
...
@@ -671,11 +671,11 @@ __pyx_memviewslice_index_full(const char *bufp, Py_ssize_t idx,
...
@@ -671,11 +671,11 @@ __pyx_memviewslice_index_full(const char *bufp, Py_ssize_t idx,
/////////////// MemviewDtypeToObject.proto ///////////////
/////////////// MemviewDtypeToObject.proto ///////////////
{{
if
to_py_function
}}
{{
if
to_py_function
}}
PyObject
*
{{
get_function
}}(
const
char
*
itemp
);
/* proto */
static
PyObject
*
{{
get_function
}}(
const
char
*
itemp
);
/* proto */
{{
endif
}}
{{
endif
}}
{{
if
from_py_function
}}
{{
if
from_py_function
}}
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
);
/* proto */
static
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
);
/* proto */
{{
endif
}}
{{
endif
}}
/////////////// MemviewDtypeToObject ///////////////
/////////////// MemviewDtypeToObject ///////////////
...
@@ -684,13 +684,13 @@ int {{set_function}}(const char *itemp, PyObject *obj); /* proto */
...
@@ -684,13 +684,13 @@ int {{set_function}}(const char *itemp, PyObject *obj); /* proto */
/* Convert a dtype to or from a Python object */
/* Convert a dtype to or from a Python object */
{{
if
to_py_function
}}
{{
if
to_py_function
}}
PyObject
*
{{
get_function
}}(
const
char
*
itemp
)
{
static
PyObject
*
{{
get_function
}}(
const
char
*
itemp
)
{
return
(
PyObject
*
)
{{
to_py_function
}}(
*
({{
dtype
}}
*
)
itemp
);
return
(
PyObject
*
)
{{
to_py_function
}}(
*
({{
dtype
}}
*
)
itemp
);
}
}
{{
endif
}}
{{
endif
}}
{{
if
from_py_function
}}
{{
if
from_py_function
}}
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
)
{
static
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
)
{
{{
dtype
}}
value
=
{{
from_py_function
}}(
obj
);
{{
dtype
}}
value
=
{{
from_py_function
}}(
obj
);
if
({{
error_condition
}})
if
({{
error_condition
}})
return
0
;
return
0
;
...
@@ -701,17 +701,17 @@ int {{set_function}}(const char *itemp, PyObject *obj) {
...
@@ -701,17 +701,17 @@ int {{set_function}}(const char *itemp, PyObject *obj) {
/////////////// MemviewObjectToObject.proto ///////////////
/////////////// MemviewObjectToObject.proto ///////////////
/* Function callbacks (for memoryview object) for dtype object */
/* Function callbacks (for memoryview object) for dtype object */
PyObject
*
{{
get_function
}}(
const
char
*
itemp
);
/* proto */
static
PyObject
*
{{
get_function
}}(
const
char
*
itemp
);
/* proto */
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
);
/* proto */
static
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
);
/* proto */
/////////////// MemviewObjectToObject ///////////////
/////////////// MemviewObjectToObject ///////////////
PyObject
*
{{
get_function
}}(
const
char
*
itemp
)
{
static
PyObject
*
{{
get_function
}}(
const
char
*
itemp
)
{
PyObject
*
result
=
*
(
PyObject
**
)
itemp
;
PyObject
*
result
=
*
(
PyObject
**
)
itemp
;
Py_INCREF
(
result
);
Py_INCREF
(
result
);
return
result
;
return
result
;
}
}
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
)
{
static
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
)
{
Py_INCREF
(
obj
);
Py_INCREF
(
obj
);
Py_DECREF
(
*
(
PyObject
**
)
itemp
);
Py_DECREF
(
*
(
PyObject
**
)
itemp
);
*
(
PyObject
**
)
itemp
=
obj
;
*
(
PyObject
**
)
itemp
=
obj
;
...
...
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