[pypy-svn] pypy default: Add another _annenforceargs_.
arigo
commits-noreply at bitbucket.org
Tue Mar 15 22:38:31 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r42686:719a25d4e74f
Date: 2011-03-15 17:38 -0400
http://bitbucket.org/pypy/pypy/changeset/719a25d4e74f/
Log: Add another _annenforceargs_.
diff --git a/pypy/rpython/lltypesystem/rffi.py b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -682,6 +682,7 @@
raw_buf = lltype.malloc(TYPEP.TO, count, flavor='raw')
return raw_buf, lltype.nullptr(STRTYPE)
alloc_buffer._always_inline_ = True # to get rid of the returned tuple
+ alloc_buffer._annenforceargs_ = [int]
# (char*, str, int, int) -> None
def str_from_buffer(raw_buf, gc_buf, allocated_size, needed_size):
More information about the Pypy-commit
mailing list