mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[quickjs] nodes must be void *
This commit is contained in:
parent
44e9a23905
commit
3ac7244f5c
@ -129,7 +129,7 @@ static const JSCFunctionListEntry js_attr_proto_funcs[] = {
|
||||
JS_CFUNC_DEF("toString", 0, js_attr_toString)
|
||||
};
|
||||
|
||||
static std::map<const void *, JSValueConst> map_attrs;
|
||||
static std::map<void *, JSValueConst> map_attrs;
|
||||
|
||||
static
|
||||
void js_attr_finalizer(JSRuntime *rt, JSValue val)
|
||||
@ -145,7 +145,7 @@ static JSClassDef js_attr_class = {
|
||||
};
|
||||
|
||||
JSValue
|
||||
getAttr(JSContext *ctx, const void *node)
|
||||
getAttr(JSContext *ctx, void *node)
|
||||
{
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
|
@ -3,6 +3,6 @@
|
||||
|
||||
#include <quickjs/quickjs.h>
|
||||
|
||||
JSValue getAttr(JSContext *ctx, const void *node);
|
||||
JSValue getAttr(JSContext *ctx, void *node);
|
||||
|
||||
#endif
|
||||
|
@ -1767,7 +1767,7 @@ static const JSCFunctionListEntry js_element_proto_funcs[] = {
|
||||
JS_CFUNC_DEF("toString", 0, js_element_toString)
|
||||
};
|
||||
|
||||
static std::map<const void *, JSValueConst> map_elements;
|
||||
static std::map<void *, JSValueConst> map_elements;
|
||||
|
||||
static
|
||||
void js_element_finalizer(JSRuntime *rt, JSValue val)
|
||||
@ -1834,7 +1834,7 @@ js_element_init(JSContext *ctx)
|
||||
|
||||
|
||||
JSValue
|
||||
getElement(JSContext *ctx, const void *node)
|
||||
getElement(JSContext *ctx, void *node)
|
||||
{
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <quickjs/quickjs.h>
|
||||
|
||||
JSValue getElement(JSContext *ctx, const void *node);
|
||||
JSValue getElement(JSContext *ctx, void *node);
|
||||
|
||||
int js_element_init(JSContext *ctx);
|
||||
void walk_tree(struct string *buf, void *nod, bool start = true, bool toSortAttrs = false);
|
||||
|
Loading…
Reference in New Issue
Block a user