summaryrefslogtreecommitdiffstats
path: root/ob_type.cocci
blob: 9d8131de65f37a36417861bfdbf6b2bd6eb78121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Convert non-PyObject* deferences of "ob_type" to use Py_TYPE macro instead
@@
PyObject *py_obj_ptr;
type T; 
T non_py_obj_ptr;
@@
(
  py_obj_ptr->ob_type
|
- non_py_obj_ptr->ob_type
+ Py_TYPE(non_py_obj_ptr) 
)