Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: third_party/cython/src/Cython/Utility/Capsule.c

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 //////////////// Capsule.proto ////////////////
2
3 /* Todo: wrap the rest of the functionality in similar functions */
4 static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig);
5
6 //////////////// Capsule ////////////////
7
8 static CYTHON_INLINE PyObject *
9 __pyx_capsule_create(void *p, CYTHON_UNUSED const char *sig)
10 {
11 PyObject *cobj;
12
13 #if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 0)
14 cobj = PyCapsule_New(p, sig, NULL);
15 #else
16 cobj = PyCObject_FromVoidPtr(p, NULL);
17 #endif
18
19 return cobj;
20 }
OLDNEW
« no previous file with comments | « third_party/cython/src/Cython/Utility/Builtins.c ('k') | third_party/cython/src/Cython/Utility/CommonTypes.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698