diff options
Diffstat (limited to 'ob_type.cocci')
-rw-r--r-- | ob_type.cocci | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ob_type.cocci b/ob_type.cocci index 590f035..daf6d96 100644 --- a/ob_type.cocci +++ b/ob_type.cocci @@ -18,3 +18,10 @@ T non_py_obj_ptr; @@ - non_py_obj_ptr->F.ob_type + Py_TYPE(non_py_obj_ptr) + +@@ +PyTypeObject typeobj; +@@ +- typeobj.ob_type ++ Py_TYPE(&typeobj) + |