commit 56f1cd14bd30832dda07ae6e5c85815b5a9204d6 Author: David Malcolm dmalcolm@redhat.com Date: Fri Sep 2 17:18:46 2011 -0400
libcpychecker: implement PyLong_FromVoidPtr
libcpychecker/refcounts.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) --- diff --git a/libcpychecker/refcounts.py b/libcpychecker/refcounts.py index ad989ed..2e561ad 100644 --- a/libcpychecker/refcounts.py +++ b/libcpychecker/refcounts.py @@ -1079,6 +1079,12 @@ class MyState(State): 'PyLongObject', 'PyLong_Type') return [success, failure]
+ def impl_PyLong_FromVoidPtr(self, stmt): + # http://docs.python.org/c-api/long.html#PyLong_FromVoidPtr + newobj, success, failure = self.impl_object_ctor(stmt, + 'PyLongObject', 'PyLong_Type') + return [success, failure] + ######################################################################## # PyModule_* ########################################################################
gcc-python-plugin-commits@lists.stg.fedorahosted.org