[pypy-commit] lang-smalltalk default: added interpreter proxy stubs for minor 7

lwassermann noreply at buildbot.pypy.org
Tue Jun 18 16:04:08 CEST 2013


Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch: 
Changeset: r450:38261a187782
Date: 2013-06-11 11:45 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/38261a187782/

Log:	added interpreter proxy stubs for minor 7

diff --git a/spyvm/interpreter_proxy.py b/spyvm/interpreter_proxy.py
--- a/spyvm/interpreter_proxy.py
+++ b/spyvm/interpreter_proxy.py
@@ -754,12 +754,20 @@
 #                    used in callbackLeave
 #      Returns: True if successful, false otherwise */
 #   sqInt (*callbackEnter)(sqInt *callbackID);
+ at expose_on_virtual_machine_proxy([int], bool, minor=7)
+def callbackEnter(callbackID):
+    print 'Called InterpreterProxy >> callbackEnter'
+    raise ProxyFunctionFailed
 
 #   /* callbackLeave: Leave the interpreter from a previous callback
 #      Arguments:
 #        callbackID: The ID of the callback received from callbackEnter()
 #      Returns: True if succcessful, false otherwise. */
 #   sqInt (*callbackLeave)(sqInt  callbackID);
+ at expose_on_virtual_machine_proxy([int], bool, minor=7)
+def callbackLeave(callbackID):
+    print 'Called InterpreterProxy >> callbackLeave'
+    raise ProxyFunctionFailed
 
 #   /* addGCRoot: Add a variable location to the garbage collector.
 #      The contents of the variable location will be updated accordingly.
@@ -767,6 +775,10 @@
 #        varLoc: Pointer to the variable location
 #      Returns: True if successful, false otherwise. */
 #   sqInt (*addGCRoot)(sqInt *varLoc);
+ at expose_on_virtual_machine_proxy([oop], bool, minor=7)
+def addGCRoot(callbackID):
+    print 'Called InterpreterProxy >> addGCRoot'
+    raise ProxyFunctionFailed
 
 #   /* removeGCRoot: Remove a variable location from the garbage collector.
 #      Arguments:
@@ -774,6 +786,10 @@
 #      Returns: True if successful, false otherwise.
 #   */
 #   sqInt (*removeGCRoot)(sqInt *varLoc);
+ at expose_on_virtual_machine_proxy([oop], bool, minor=7)
+def removeGCRoot(callbackID):
+    print 'Called InterpreterProxy >> removeGCRoot'
+    raise ProxyFunctionFailed
 # #endif
 
 # #if VM_PROXY_MINOR > 8


More information about the pypy-commit mailing list