Mercurial > pymonkey
diff context.c @ 21:fc04e5f1c675
Changed object constructor to take a context instead of a runtime.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 28 Jun 2009 20:40:18 -0700 |
parents | abede8af8cf5 |
children | 74b7ad049542 |
line wrap: on
line diff
--- a/context.c Sun Jun 28 20:19:39 2009 -0700 +++ b/context.c Sun Jun 28 20:40:18 2009 -0700 @@ -34,7 +34,7 @@ // If this fails, we don't need to worry about cleaning up // obj because it'll get cleaned up at the next GC. - return (PyObject *) PYM_newJSObject(self->runtime, obj); + return (PyObject *) PYM_newJSObject(self, obj); } static PyObject * @@ -75,7 +75,7 @@ } PyMem_Free(string); - return PYM_jsvalToPyObject(self->runtime, val); + return PYM_jsvalToPyObject(self, val); } static PyObject * @@ -118,7 +118,7 @@ return NULL; } - PyObject *pyRval = PYM_jsvalToPyObject(self->runtime, rval); + PyObject *pyRval = PYM_jsvalToPyObject(self, rval); JS_EndRequest(self->cx);