[pypy-svn] r70890 - pypy/branch/unroll-safe-if-const-arg/pypy/rpython/lltypesystem
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Jan 26 16:36:21 CET 2010
Author: cfbolz
Date: Tue Jan 26 16:36:20 2010
New Revision: 70890
Modified:
pypy/branch/unroll-safe-if-const-arg/pypy/rpython/lltypesystem/rstr.py
Log:
mark character finding as pure. at some point we should do that systematically
about string functions.
Modified: pypy/branch/unroll-safe-if-const-arg/pypy/rpython/lltypesystem/rstr.py
==============================================================================
--- pypy/branch/unroll-safe-if-const-arg/pypy/rpython/lltypesystem/rstr.py (original)
+++ pypy/branch/unroll-safe-if-const-arg/pypy/rpython/lltypesystem/rstr.py Tue Jan 26 16:36:20 2010
@@ -450,6 +450,7 @@
return True
+ @purefunction
def ll_find_char(s, ch, start, end):
i = start
if end > len(s.chars):
@@ -460,6 +461,7 @@
i += 1
return -1
+ @purefunction
def ll_rfind_char(s, ch, start, end):
if end > len(s.chars):
end = len(s.chars)
More information about the Pypy-commit
mailing list