Mercurial > pymonkey
comparison utils.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 | fc04e5f1c675 |
children | 608d086d12e3 |
comparison
equal
deleted
inserted
replaced
22:988a8998c75f | 23:951ad1b15587 |
---|---|
2 #define PYM_UTILS_H | 2 #define PYM_UTILS_H |
3 | 3 |
4 #include "context.h" | 4 #include "context.h" |
5 | 5 |
6 #include <jsapi.h> | 6 #include <jsapi.h> |
7 #include <jsdhash.h> | |
7 #include <Python/Python.h> | 8 #include <Python/Python.h> |
9 | |
10 typedef struct { | |
11 JSDHashEntryStub base; | |
12 void *value; | |
13 } PYM_HashEntry; | |
8 | 14 |
9 extern PyObject *PYM_error; | 15 extern PyObject *PYM_error; |
10 | 16 |
11 extern PyObject * | 17 extern PyObject * |
12 PYM_jsvalToPyObject(PYM_JSContextObject *context, jsval value); | 18 PYM_jsvalToPyObject(PYM_JSContextObject *context, jsval value); |