|
ELinks 0.19.1
|


Data Structures | |
| struct | spidermonkeyFunctionSpec |
| An ELinks-specific replacement for JSFunctionSpec. More... | |
Macros | |
| #define | ELINKS_CAST_PROP_PARAMS |
Typedefs | |
| typedef struct spidermonkeyFunctionSpec | spidermonkeyFunctionSpec |
| An ELinks-specific replacement for JSFunctionSpec. | |
Functions | |
| int | spidermonkey_runtime_addref (void) |
| void | spidermonkey_runtime_release (void) |
| void | spidermonkey_release_all_runtimes (void) |
| bool | spidermonkey_DefineFunctions (JSContext *cx, JSObject *obj, const spidermonkeyFunctionSpec *fs) |
| JSObject * | spidermonkey_InitClass (JSContext *cx, JSObject *obj, JSObject *parent_proto, const JSClass *clasp, JSNative constructor, unsigned int nargs, JSPropertySpec *ps, const spidermonkeyFunctionSpec *fs, JSPropertySpec *static_ps, const spidermonkeyFunctionSpec *static_fs, const char *name) |
| bool | spidermonkey_check_if_function_name (const spidermonkeyFunctionSpec funcs[], const char *string) |
| static char * | jsval_to_string (JSContext *ctx, JS::HandleValue hvp) |
| static char * | jsid_to_string (JSContext *ctx, JS::HandleId hid) |
Variables | |
| JSRuntime * | spidermonkey_runtime |
| JSContext * | main_ctx |
| long | spidermonkey_memory_limit |
| #define ELINKS_CAST_PROP_PARAMS |
| typedef struct spidermonkeyFunctionSpec spidermonkeyFunctionSpec |
An ELinks-specific replacement for JSFunctionSpec.
Bug 1016: In SpiderMonkey 1.7 bundled with XULRunner 1.8, jsapi.h defines JSFunctionSpec in different ways depending on whether MOZILLA_1_8_BRANCH is defined, and there is no obvious way for ELinks to check whether MOZILLA_1_8_BRANCH was defined when the library was built. Avoid the unstable JSFunctionSpec definitions and use this ELinks-specific structure instead.
|
inlinestatic |
|
inlinestatic |
| bool spidermonkey_check_if_function_name | ( | const spidermonkeyFunctionSpec | funcs[], |
| const char * | string ) |
| bool spidermonkey_DefineFunctions | ( | JSContext * | cx, |
| JSObject * | obj, | ||
| const spidermonkeyFunctionSpec * | fs ) |
| JSObject * spidermonkey_InitClass | ( | JSContext * | cx, |
| JSObject * | obj, | ||
| JSObject * | parent_proto, | ||
| const JSClass * | clasp, | ||
| JSNative | constructor, | ||
| unsigned int | nargs, | ||
| JSPropertySpec * | ps, | ||
| const spidermonkeyFunctionSpec * | fs, | ||
| JSPropertySpec * | static_ps, | ||
| const spidermonkeyFunctionSpec * | static_fs, | ||
| const char * | name ) |
| void spidermonkey_release_all_runtimes | ( | void | ) |
| int spidermonkey_runtime_addref | ( | void | ) |
| void spidermonkey_runtime_release | ( | void | ) |
|
extern |
|
extern |
|
extern |