Lines Matching defs:po
79 PyCursesPanelObject *po;
88 insert_lop(PyCursesPanelObject *po)
96 new->po = po;
104 remove_lop(PyCursesPanelObject *po)
109 if (temp->po == po) {
114 while (temp->next == NULL || temp->next->po != po) {
133 for (temp = lop; temp->po->pan != pan; temp = temp->next)
135 return temp->po;
176 PyCursesPanelObject *po;
178 po = PyObject_NEW(PyCursesPanelObject, &PyCursesPanel_Type);
179 if (po == NULL) return NULL;
180 po->pan = pan;
181 if (insert_lop(po) < 0) {
182 po->wo = NULL;
183 Py_DECREF(po);
186 po->wo = wo;
188 return (PyObject *)po;
192 PyCursesPanel_Dealloc(PyCursesPanelObject *po)
194 PyObject *obj = (PyObject *) panel_userptr(po->pan);
196 (void)set_panel_userptr(po->pan, NULL);
199 (void)del_panel(po->pan);
200 if (po->wo != NULL) {
201 Py_DECREF(po->wo);
202 remove_lop(po);
204 PyObject_DEL(po);
213 PyCursesPanelObject *po;
222 po = find_po(pan);
223 if (po == NULL) {
228 Py_INCREF(po);
229 return (PyObject *)po;
238 PyCursesPanelObject *po;
247 po = find_po(pan);
248 if (po == NULL) {
253 Py_INCREF(po);
254 return (PyObject *)po;
267 PyCursesPanelObject *po;
279 po = find_po(self->pan);
280 if (po == NULL) {
292 Py_SETREF(po->wo, temp);
382 PyCursesPanelObject *po;
393 po = find_po(pan);
394 if (po == NULL) {
399 Py_INCREF(po);
400 return (PyObject *)po;
428 PyCursesPanelObject *po;
439 po = find_po(pan);
440 if (po == NULL) {
445 Py_INCREF(po);
446 return (PyObject *)po;