Lines Matching refs:wp
940 wrapper_dealloc(wrapperobject *wp) in wrapper_dealloc() argument
942 PyObject_GC_UnTrack(wp); in wrapper_dealloc()
943 Py_TRASHCAN_SAFE_BEGIN(wp) in wrapper_dealloc()
944 Py_XDECREF(wp->descr); in wrapper_dealloc()
945 Py_XDECREF(wp->self); in wrapper_dealloc()
946 PyObject_GC_Del(wp); in wrapper_dealloc()
947 Py_TRASHCAN_SAFE_END(wp) in wrapper_dealloc()
960 wrapper_hash(wrapperobject *wp) in wrapper_hash() argument
963 x = _Py_HashPointer(wp->descr); in wrapper_hash()
966 y = PyObject_Hash(wp->self); in wrapper_hash()
976 wrapper_repr(wrapperobject *wp) in wrapper_repr() argument
979 wp->descr->d_base->name, in wrapper_repr()
980 wp->self->ob_type->tp_name, in wrapper_repr()
981 wp->self); in wrapper_repr()
990 wrapper_objclass(wrapperobject *wp) in wrapper_objclass() argument
992 PyObject *c = (PyObject *)wp->descr->d_type; in wrapper_objclass()
999 wrapper_name(wrapperobject *wp) in wrapper_name() argument
1001 char *s = wp->descr->d_base->name; in wrapper_name()
1007 wrapper_doc(wrapperobject *wp) in wrapper_doc() argument
1009 char *s = wp->descr->d_base->doc; in wrapper_doc()
1028 wrapper_call(wrapperobject *wp, PyObject *args, PyObject *kwds) in wrapper_call() argument
1030 wrapperfunc wrapper = wp->descr->d_base->wrapper; in wrapper_call()
1031 PyObject *self = wp->self; in wrapper_call()
1033 if (wp->descr->d_base->flags & PyWrapperFlag_KEYWORDS) { in wrapper_call()
1035 return (*wk)(self, args, wp->descr->d_wrapped, kwds); in wrapper_call()
1041 wp->descr->d_base->name); in wrapper_call()
1044 return (*wrapper)(self, args, wp->descr->d_wrapped); in wrapper_call()
1050 wrapperobject *wp = (wrapperobject *)self; in wrapper_traverse() local
1051 Py_VISIT(wp->descr); in wrapper_traverse()
1052 Py_VISIT(wp->self); in wrapper_traverse()
1097 wrapperobject *wp; in PyWrapper_New() local
1105 wp = PyObject_GC_New(wrapperobject, &wrappertype); in PyWrapper_New()
1106 if (wp != NULL) { in PyWrapper_New()
1108 wp->descr = descr; in PyWrapper_New()
1110 wp->self = self; in PyWrapper_New()
1111 _PyObject_GC_TRACK(wp); in PyWrapper_New()
1113 return (PyObject *)wp; in PyWrapper_New()