ELinks 0.18.0
attributes.c File Reference
#include <stdio.h>
#include "elinks.h"
#include "document/libdom/corestrings.h"
#include "js/ecmascript.h"
#include "js/quickjs/mapa.h"
#include "js/quickjs.h"
#include "js/quickjs/attr.h"
#include "js/quickjs/attributes.h"
Include dependency graph for attributes.c:

Macros

#define countof(x)

Functions

static void * js_attributes_GetOpaque (JSValueConst this_val)
static void js_attributes_SetOpaque (JSValueConst this_val, void *node)
static void js_attributes_set_items (JSContext *ctx, JSValue this_val, void *node)
static JSValue js_attributes_get_property_length (JSContext *ctx, JSValueConst this_val)
static JSValue js_attributes_item2 (JSContext *ctx, JSValueConst this_val, int idx)
static JSValue js_attributes_item (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
static JSValue js_attributes_namedItem2 (JSContext *ctx, JSValueConst this_val, const char *str)
static JSValue js_attributes_getNamedItem (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
static JSValue js_attributes_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
static void js_attributes_finalizer (JSRuntime *rt, JSValue val)
JSValue getAttributes (JSContext *ctx, void *node)

Variables

void * map_attributes
void * map_rev_attributes
JSClassID js_attributes_class_id
static const JSCFunctionListEntry js_attributes_proto_funcs []
static JSClassDef js_attributes_class

Macro Definition Documentation

◆ countof

#define countof ( x)
Value:
(sizeof(x) / sizeof((x)[0]))

Function Documentation

◆ getAttributes()

JSValue getAttributes ( JSContext * ctx,
void * node )

◆ js_attributes_finalizer()

void js_attributes_finalizer ( JSRuntime * rt,
JSValue val )
static

◆ js_attributes_get_property_length()

JSValue js_attributes_get_property_length ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_attributes_getNamedItem()

JSValue js_attributes_getNamedItem ( JSContext * ctx,
JSValueConst this_val,
int argc,
JSValueConst * argv )
static

◆ js_attributes_GetOpaque()

void * js_attributes_GetOpaque ( JSValueConst this_val)
static

◆ js_attributes_item()

JSValue js_attributes_item ( JSContext * ctx,
JSValueConst this_val,
int argc,
JSValueConst * argv )
static

◆ js_attributes_item2()

JSValue js_attributes_item2 ( JSContext * ctx,
JSValueConst this_val,
int idx )
static

◆ js_attributes_namedItem2()

JSValue js_attributes_namedItem2 ( JSContext * ctx,
JSValueConst this_val,
const char * str )
static

◆ js_attributes_set_items()

void js_attributes_set_items ( JSContext * ctx,
JSValue this_val,
void * node )
static

◆ js_attributes_SetOpaque()

void js_attributes_SetOpaque ( JSValueConst this_val,
void * node )
static

◆ js_attributes_toString()

JSValue js_attributes_toString ( JSContext * ctx,
JSValueConst this_val,
int argc,
JSValueConst * argv )
static

Variable Documentation

◆ js_attributes_class

JSClassDef js_attributes_class
static
Initial value:
= {
"attributes",
}
static void js_attributes_finalizer(JSRuntime *rt, JSValue val)
Definition attributes.c:288

◆ js_attributes_class_id

JSClassID js_attributes_class_id

◆ js_attributes_proto_funcs

const JSCFunctionListEntry js_attributes_proto_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("length", js_attributes_get_property_length, NULL),
JS_CFUNC_DEF("item", 1, js_attributes_item),
JS_CFUNC_DEF("getNamedItem", 1, js_attributes_getNamedItem),
}
#define NULL
Definition explodename.c:35
static JSValue js_attributes_get_property_length(JSContext *ctx, JSValueConst this_val)
Definition attributes.c:111
static JSValue js_attributes_item(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition attributes.c:182
static JSValue js_attributes_getNamedItem(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition attributes.c:243

◆ map_attributes

void* map_attributes

◆ map_rev_attributes

void* map_rev_attributes