Author: Tim Felgentreff <[email protected]>
Branch:
Changeset: r141:1544fbf12f74
Date: 2013-03-08 10:16 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/1544fbf12f74/
Log: Add GET_NEXT_EVENT and DRAW_RECTANGLE stubs
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -528,13 +528,16 @@
KBD_PEEK = 109
+@expose_primitive(GET_NEXT_EVENT, unwrap_spec=[object])
+def func(interp, s_frame, w_rcvr):
+ raise PrimitiveNotYetWrittenError()
+
@expose_primitive(BE_CURSOR, unwrap_spec=[object])
def func(interp, s_frame, 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, s_frame, w_rcvr):
if not isinstance(w_rcvr, model.W_PointersObject) or w_rcvr.size() < 4:
@@ -643,6 +646,7 @@
VALUE_UNINTERRUPTABLY = 123
LOW_SPACE_SEMAPHORE = 124
SIGNAL_AT_BYTES_LEFT = 125
+DRAW_RECTANGLE = 127
@expose_primitive(IMAGE_NAME)
def func(interp, s_frame, argument_count):
@@ -664,6 +668,10 @@
# dont know when the space runs out
return w_reciver
+@expose_primitive(DRAW_RECTANGLE, unwrap_spec=[object, int, int, int, int])
+def func(interp, s_frame, w_rcvr, left, right, top, bottom):
+ raise PrimitiveNotYetWrittenError()
+
# ___________________________________________________________________________
# Squeak Miscellaneous Primitives (128-149)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit