summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2009-11-19 16:46:13 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2009-11-19 16:46:13 -0500
commiteb3fa5c64f7bfd9e26320500a114f00d2cb80bd8 (patch)
treefdf9867ac4dc8774c81b06adbcfca4ffa3e09e19
parenta04ea828bd6b01d38b263a5515cb32c383887744 (diff)
download2to3c-eb3fa5c64f7bfd9e26320500a114f00d2cb80bd8.tar.gz
2to3c-eb3fa5c64f7bfd9e26320500a114f00d2cb80bd8.tar.xz
2to3c-eb3fa5c64f7bfd9e26320500a114f00d2cb80bd8.zip
Fix more ob_type dereferences
-rw-r--r--ob_type.cocci8
1 files changed, 8 insertions, 0 deletions
diff --git a/ob_type.cocci b/ob_type.cocci
index 9d8131d..590f035 100644
--- a/ob_type.cocci
+++ b/ob_type.cocci
@@ -10,3 +10,11 @@ T non_py_obj_ptr;
- non_py_obj_ptr->ob_type
+ Py_TYPE(non_py_obj_ptr)
)
+
+@@
+identifier F; // FIXME: must be an initial field of a struct
+type T;
+T non_py_obj_ptr;
+@@
+- non_py_obj_ptr->F.ob_type
++ Py_TYPE(non_py_obj_ptr)