comparison src/context.cpp @ 173:5cfb47c9e916 default tip

Minor line wrap and spacing fixes.
author Atul Varma <varmaa@toolness.com>
date Tue, 01 Sep 2009 03:22:33 -0700
parents dd32a92f6b4f
children
comparison
equal deleted inserted replaced
172:94c80a0e7644 173:5cfb47c9e916
68 68
69 Py_DECREF(result); 69 Py_DECREF(result);
70 return JSTRAP_CONTINUE; 70 return JSTRAP_CONTINUE;
71 } 71 }
72 72
73 // This is the default JSOperationCallback for pydermonkey-owned JS contexts, 73 // This is the default JSOperationCallback for pydermonkey-owned JS
74 // when they've defined one in Python. 74 // contexts, when they've defined one in Python.
75 static JSBool 75 static JSBool
76 PYM_operationCallback(JSContext *cx) 76 PYM_operationCallback(JSContext *cx)
77 { 77 {
78 PYM_PyAutoEnsureGIL gil; 78 PYM_PyAutoEnsureGIL gil;
79 PYM_JSContextObject *context = (PYM_JSContextObject *) 79 PYM_JSContextObject *context = (PYM_JSContextObject *)
802 }; 802 };
803 803
804 PyTypeObject PYM_JSContextType = { 804 PyTypeObject PYM_JSContextType = {
805 PyObject_HEAD_INIT(NULL) 805 PyObject_HEAD_INIT(NULL)
806 0, /*ob_size*/ 806 0, /*ob_size*/
807 "pydermonkey.Context", /*tp_name*/ 807 "pydermonkey.Context", /*tp_name*/
808 sizeof(PYM_JSContextObject), /*tp_basicsize*/ 808 sizeof(PYM_JSContextObject), /*tp_basicsize*/
809 0, /*tp_itemsize*/ 809 0, /*tp_itemsize*/
810 /*tp_dealloc*/ 810 /*tp_dealloc*/
811 (destructor) PYM_JSContextDealloc, 811 (destructor) PYM_JSContextDealloc,
812 0, /*tp_print*/ 812 0, /*tp_print*/