#print "...private and not definition, skipping" ###
return
ifnotentry.usedandvisibility=="private":
#print "not used and private, skipping" ###
return
storage_class=""
ifvisibility=='extern':
...
...
@@ -288,13 +292,6 @@ class CCodeWriter:
# code = "((PyObject*)%s)" % code
self.put_init_to_py_none(code,entry.type)
defput_py_gil_state_ensure(self,cname):
self.putln("PyGILState_STATE %s;"%cname)
self.putln("%s = PyGILState_Ensure();"%cname)
defput_py_gil_state_release(self,cname):
self.putln("PyGILState_Release(%s);"%cname)
defput_pymethoddef(self,entry,term):
ifentry.doc:
doc_code=entry.doc_cname
...
...
@@ -316,6 +313,10 @@ class CCodeWriter:
# return self.putln("if (unlikely(%s < 0)) %s" % (value, self.error_goto(pos))) # TODO this path is almost _never_ taken, yet this macro makes is slower!