1
0
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:
Witold Filipczyk 2022-01-30 11:09:56 +01:00
parent 44e9a23905
commit 3ac7244f5c
4 changed files with 6 additions and 6 deletions

View File

@ -129,7 +129,7 @@ static const JSCFunctionListEntry js_attr_proto_funcs[] = {
JS_CFUNC_DEF("toString", 0, js_attr_toString) JS_CFUNC_DEF("toString", 0, js_attr_toString)
}; };
static std::map<const void *, JSValueConst> map_attrs; static std::map<void *, JSValueConst> map_attrs;
static static
void js_attr_finalizer(JSRuntime *rt, JSValue val) void js_attr_finalizer(JSRuntime *rt, JSValue val)
@ -145,7 +145,7 @@ static JSClassDef js_attr_class = {
}; };
JSValue JSValue
getAttr(JSContext *ctx, const void *node) getAttr(JSContext *ctx, void *node)
{ {
#ifdef ECMASCRIPT_DEBUG #ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);

View File

@ -3,6 +3,6 @@
#include <quickjs/quickjs.h> #include <quickjs/quickjs.h>
JSValue getAttr(JSContext *ctx, const void *node); JSValue getAttr(JSContext *ctx, void *node);
#endif #endif

View File

@ -1767,7 +1767,7 @@ static const JSCFunctionListEntry js_element_proto_funcs[] = {
JS_CFUNC_DEF("toString", 0, js_element_toString) JS_CFUNC_DEF("toString", 0, js_element_toString)
}; };
static std::map<const void *, JSValueConst> map_elements; static std::map<void *, JSValueConst> map_elements;
static static
void js_element_finalizer(JSRuntime *rt, JSValue val) void js_element_finalizer(JSRuntime *rt, JSValue val)
@ -1834,7 +1834,7 @@ js_element_init(JSContext *ctx)
JSValue JSValue
getElement(JSContext *ctx, const void *node) getElement(JSContext *ctx, void *node)
{ {
#ifdef ECMASCRIPT_DEBUG #ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);

View File

@ -3,7 +3,7 @@
#include <quickjs/quickjs.h> #include <quickjs/quickjs.h>
JSValue getElement(JSContext *ctx, const void *node); JSValue getElement(JSContext *ctx, void *node);
int js_element_init(JSContext *ctx); int js_element_init(JSContext *ctx);
void walk_tree(struct string *buf, void *nod, bool start = true, bool toSortAttrs = false); void walk_tree(struct string *buf, void *nod, bool start = true, bool toSortAttrs = false);