[pypy-svn] r76406 - pypy/trunk/pypy/rpython/lltypesystem
fijal at codespeak.net
fijal at codespeak.net
Fri Jul 30 19:33:38 CEST 2010
Author: fijal
Date: Fri Jul 30 19:33:36 2010
New Revision: 76406
Modified:
pypy/trunk/pypy/rpython/lltypesystem/rstr.py
Log:
Use cool new decorator to fix tests
Modified: pypy/trunk/pypy/rpython/lltypesystem/rstr.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/rstr.py (original)
+++ pypy/trunk/pypy/rpython/lltypesystem/rstr.py Fri Jul 30 19:33:36 2010
@@ -2,7 +2,7 @@
from pypy.tool.pairtype import pairtype
from pypy.rpython.error import TyperError
from pypy.rlib.objectmodel import malloc_zero_filled, we_are_translated
-from pypy.rlib.objectmodel import _hash_string
+from pypy.rlib.objectmodel import _hash_string, enforceargs
from pypy.rlib.debug import ll_assert
from pypy.rlib.jit import purefunction
from pypy.rpython.robject import PyObjRepr, pyobj_repr
@@ -56,6 +56,7 @@
llmemory.itemoffsetof(TP.chars, 0) +
llmemory.sizeof(CHAR_TP) * item)
+ @enforceargs(None, None, int, int, int)
def copy_string_contents(src, dst, srcstart, dststart, length):
assert srcstart >= 0
assert dststart >= 0
More information about the Pypy-commit
mailing list