[pypy-svn] r62601 - pypy/branch/spy-graphic/pypy/lang/smalltalk

witulski at codespeak.net witulski at codespeak.net
Thu Mar 5 17:56:34 CET 2009


Author: witulski
Date: Thu Mar  5 17:56:34 2009
New Revision: 62601

Modified:
   pypy/branch/spy-graphic/pypy/lang/smalltalk/primitives.py
Log:
added SIGNAL_AT_BYTES_LEFT and LOW_SPACE_SEMAPHORE (does nothing)


Modified: pypy/branch/spy-graphic/pypy/lang/smalltalk/primitives.py
==============================================================================
--- pypy/branch/spy-graphic/pypy/lang/smalltalk/primitives.py	(original)
+++ pypy/branch/spy-graphic/pypy/lang/smalltalk/primitives.py	Thu Mar  5 17:56:34 2009
@@ -479,12 +479,14 @@
 KBD_NEXT = 108
 KBD_PEEK = 109
 
+
 @expose_primitive(BE_CURSOR, unwrap_spec=[object])
 def func(interp, w_rcvr):
     # TODO: Use info from cursor object.
     interp.space.objtable['w_cursor'] = w_rcvr
     return w_rcvr
 
+
 @expose_primitive(BE_DISPLAY, unwrap_spec=[object])
 def func(interp, w_rcvr):
     interp.space.objtable['w_display'] = w_rcvr
@@ -498,6 +500,7 @@
     point.store_x(640)
     point.store_y(480)
     return w_res
+
 # ___________________________________________________________________________
 # Control Primitives
 
@@ -574,7 +577,16 @@
         pass # XXX
     raise PrimitiveFailedError
 
+ at expose_primitive(LOW_SPACE_SEMAPHORE, unwrap_spec=[object, object])
+def func(interp, w_reciver, i):
+    # dont know when the space runs out
+    return w_reciver
+
 
+ at expose_primitive(SIGNAL_AT_BYTES_LEFT, unwrap_spec=[object, int])
+def func(interp, w_reciver, i):
+    # dont know when the space runs out
+    return w_reciver
 
 
 # ___________________________________________________________________________



More information about the Pypy-commit mailing list