Commits

Paul J. Davis  committed 50d8cf3

Finishing the moving. Next up is RAII

  • Participants
  • Parent commits 9cad6bb

Comments (0)

Files changed (4)

File spidermonkey/common/array.cpp

+#include <spidermonkey.h>
+
+PyObject*
+js2py_array(Context* cx, jsval val)
+{
+    return make_object(ArrayType, cx, val);
+}

File spidermonkey/common/common.h

 jsval py2js_object(Context* cx, PyObject* pyobj);
 PyObject* js2py_object(Context* cx, jsval val);
 
+PyObject* js2py_array(Context* cx, jsval val);
+
 PyObject* js2py_function(Context* cx, jsval val, jsval parent);
 
 #endif

File spidermonkey/python/array.cpp

 
 #include <spidermonkey.h>
 
-PyObject*
-js2py_array(Context* cx, jsval val)
-{
-    return make_object(ArrayType, cx, val);
-}
-
 Py_ssize_t
 Array_length(Object* self)
 {

File spidermonkey/python/python.h

     jsval root;
 } Iterator;
 
-
-// Arrays
-PyObject* js2py_array(Context* cx, jsval val);
-
 // Context
 int Context_has_access(Context*, JSContext*, PyObject*, PyObject*);
 int Context_add_class(Context* cx, const char* key, PyObject* val);
 int Context_add_object(Context* cx, PyObject* val);
 int Context_rem_object(Context* cx, PyObject* val);
 
-// Functions
-PyObject* js2py_function(Context* cx, jsval val, jsval parent);
-
 // HashCObj
 // BIG FUCKING NOTE: This constructor never Py_INCREF's the returned object.
 PyObject* HashCObj_FromVoidPtr(void *cobj);
 
 // Objects
 PyObject* make_object(PyTypeObject* type, Context* cx, jsval val);
-PyObject* js2py_object(Context* cx, jsval val);
 
 #endif