break
def fake_pxd(root):
for entry in root.scope.entries.values():
- entry.defined_in_pxd = 1
+ if not entry.in_cinclude:
+ entry.defined_in_pxd = 1
return StatListNode(root.pos, stats=[]), root.scope
pipeline.append(fake_pxd)
return pipeline
######## a.pyx ########
-from b cimport Bclass, Bfunc, Bstruct, Benum, Benum_value, Btypedef
+from b cimport Bclass, Bfunc, Bstruct, Benum, Benum_value, Btypedef, Py_EQ, Py_NE
cdef Bclass b = Bclass(5)
assert Bfunc(&b.value) == b.value
assert b.asStruct().value == b.value
cdef Btypedef b_type = &b.value
cdef Benum b_enum = Benum_value
+cdef int tmp = Py_EQ
#from c cimport ClassC
#cdef ClassC c = ClassC()
######## b.pyx ########
+from cpython.object cimport Py_EQ, Py_NE
+
cdef enum Benum:
Benum_value