[pypy-svn] r45505 - pypy/dist/pypy/translator/sandbox

arigo at codespeak.net arigo at codespeak.net
Sun Aug 5 17:30:44 CEST 2007


Author: arigo
Date: Sun Aug  5 17:30:43 2007
New Revision: 45505

Modified:
   pypy/dist/pypy/translator/sandbox/rsandbox.py
Log:
Typos, RPython fixes.


Modified: pypy/dist/pypy/translator/sandbox/rsandbox.py
==============================================================================
--- pypy/dist/pypy/translator/sandbox/rsandbox.py	(original)
+++ pypy/dist/pypy/translator/sandbox/rsandbox.py	Sun Aug  5 17:30:43 2007
@@ -43,6 +43,7 @@
         length -= count
         buf = lltype.direct_ptradd(lltype.direct_arrayitems(buf), count)
         buf = rffi.cast(rffi.CCHARP, buf)
+writeall_not_sandboxed._annenforceargs_ = [int, rffi.CCHARP, int]
 
 def readall_not_sandboxed(fd, length):
     buf = lltype.malloc(rffi.CCHARP.TO, length, flavor='raw')
@@ -57,6 +58,7 @@
         p = lltype.direct_ptradd(lltype.direct_arrayitems(p), count)
         p = rffi.cast(rffi.CCHARP, p)
     return buf
+readall_not_sandboxed._annenforceargs_ = [int, int]
 
 def buf2num(buf, index=0):
     c0 = ord(buf[index  ])
@@ -106,7 +108,7 @@
     try:
         return cache[FUNCTYPE.RESULT]
     except KeyError:
-        raise NotImplementedError("exernal function %r return type %s" % (
+        raise NotImplementedError("external function %r return type %s" % (
             namehint, FUNCTYPE.RESULT))
 
 CFalse = CDefinedIntSymbolic('0')    # hack hack



More information about the Pypy-commit mailing list