Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Cython / tests / compile / nogil.pyx
Size: Mime:
# mode: compile

cdef extern object g(object x) nogil
cdef extern void g2(object x) nogil

cdef extern from "nogil.h":
        void e1() nogil
        int *e2() nogil

cdef void f(int x) nogil:
        cdef int y
        y = 42

cdef void h(object x) nogil:
        cdef void *p=<void*>None
        g2(x)
        g2(<object>p)
        p = <void *>x
        e1()
        e2()

f(0)
h(None)