Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 0E213A6531 for ; Sun, 30 Aug 2015 14:42:05 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id B1FFB14A4D4; Sun, 30 Aug 2015 14:42:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id EB89214A4D2 for ; Sun, 30 Aug 2015 14:42:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id VK-J1T6nYe_D for ; Sun, 30 Aug 2015 14:42:03 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 5F5CF14A4D0 for ; Sun, 30 Aug 2015 14:42:03 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 5D00298; Sun, 30 Aug 2015 14:42:03 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 30 Aug 2015 14:42:03 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/devel/py-cffi To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20150830144203.5D00298@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: wiz Date: Sun Aug 30 14:42:03 UTC 2015 Modified Files: pkgsrc/devel/py-cffi: Makefile distinfo Log Message: Update to 1.2.1: v1.2.1 Nothing changed from v1.2.0. v1.2.0 Out-of-line mode: int a[][...]; can be used to declare a structure field or global variable which is, simultaneously, of total length unknown to the C compiler (the a[] part) and each element is itself an array of N integers, where the value of N is known to the C compiler (the int and [...] parts around it). Similarly, int a[5][...]; is supported (but probably less useful: remember that in C it means int (a[5])[...];). PyPy: the lib.some_function objects were missing the attributes __name__, __module__ and __doc__ that are expected e.g. by some decorators-management functions from functools. Out-of-line API mode: you can now do from _example.lib import x to import the name x from _example.lib, even though the lib object is not a standard module object. (Also works in from _example.lib import *, but this is even more of a hack and will fail if lib happens to declare a name called __all__. Note that * excludes the global variables; only the functions and constants make sense to import like this.) lib.__dict__ works again and gives you a copy of the dictâassuming that lib has got no symbol called precisely __dict__. (In general, it is safer to use dir(lib).) Out-of-line API mode: global variables are now fetched on demand at every access. It fixes issue #212 (Windows DLL variables), and also allows variables that are defined as dynamic macros (like errno) or __thread -local variables. (This change might also tighten the C compilerâs check on the variablesâ type.) Issue #209: dereferencing NULL pointers now raises RuntimeError instead of segfaulting. Meant as a debugging aid. The check is only for NULL: if you dereference random or dead pointers you might still get segfaults. Issue #152: callbacks: added an argument ffi.callback(..., onerror=...). If the main callback function raises an exception and onerror is provided, then onerror(exception, exc_value, traceback) is called. This is similar to writing a try: except: in the main callback function, but in some cases (e.g. a signal) an exception can occur at the very start of the callback functionâbefore it had time to enter the try: except: block. Issue #115: added ffi.new_allocator(), which officializes support for alternative allocators. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-cffi/Makefile \ pkgsrc/devel/py-cffi/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.