diff runtime.h @ 23:951ad1b15587

The hashtable of reflected JS objects now uses a JS_DHashTable instead of a PyDict. Also removed weakref-ability of the JSObject class since it didn't make any sense to use Python's weakref support for JSObjects.
author Atul Varma <varmaa@toolness.com>
date Sun, 28 Jun 2009 22:58:04 -0700
parents 988a8998c75f
children bc4263c6ae82
line wrap: on
line diff
--- a/runtime.h	Sun Jun 28 21:49:07 2009 -0700
+++ b/runtime.h	Sun Jun 28 22:58:04 2009 -0700
@@ -2,12 +2,13 @@
 #define PYM_RUNTIME_H
 
 #include <jsapi.h>
+#include <jsdhash.h>
 #include <Python/Python.h>
 
 typedef struct {
   PyObject_HEAD
   JSRuntime *rt;
-  PyObject *objects;
+  JSDHashTable objects;
 } PYM_JSRuntimeObject;
 
 extern PyTypeObject PYM_JSRuntimeType;