Author: Lars Wassermann <[email protected]> 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); +@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); +@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); +@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); +@expose_on_virtual_machine_proxy([oop], bool, minor=7) +def removeGCRoot(callbackID): + print 'Called InterpreterProxy >> removeGCRoot' + raise ProxyFunctionFailed # #endif # #if VM_PROXY_MINOR > 8 _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
