ELinks 0.18.0
collection2.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "document/libdom/corestrings.h"
#include "js/ecmascript-c.h"
#include "js/ecmascript.h"
#include "js/quickjs/mapa.h"
#include "js/quickjs.h"
#include "js/quickjs/collection.h"
#include "js/quickjs/element.h"
#include "js/quickjs/node.h"
Include dependency graph for collection2.c:

Macros

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

Functions

static void * js_htmlCollection2_GetOpaque (JSValueConst this_val)
 
static void js_htmlCollection2_SetOpaque (JSValueConst this_val, void *node)
 
static void js_htmlColection2_finalizer (JSRuntime *rt, JSValue val)
 
static JSValue js_htmlCollection2_get_property_length (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_htmlCollection2_item2 (JSContext *ctx, JSValueConst this_val, int idx)
 
static JSValue js_htmlCollection2_item (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_htmlCollection2_namedItem2 (JSContext *ctx, JSValueConst this_val, const char *str)
 
static JSValue js_htmlCollection2_namedItem (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static void js_htmlCollection2_set_items (JSContext *ctx, JSValue this_val, void *node)
 
static JSValue js_htmlCollection2_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
JSValue getCollection2 (JSContext *ctx, void *node)
 

Variables

void * map_collections2
 
void * map_rev_collections2
 
JSClassID js_htmlCollection2_class_id
 
static const JSCFunctionListEntry js_htmlCollection2_proto_funcs []
 
static JSClassDef js_htmlCollection2_class
 

Macro Definition Documentation

◆ countof

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

Function Documentation

◆ getCollection2()

JSValue getCollection2 ( JSContext * ctx,
void * node )

◆ js_htmlColection2_finalizer()

static void js_htmlColection2_finalizer ( JSRuntime * rt,
JSValue val )
static

◆ js_htmlCollection2_get_property_length()

static JSValue js_htmlCollection2_get_property_length ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_htmlCollection2_GetOpaque()

static void * js_htmlCollection2_GetOpaque ( JSValueConst this_val)
static

◆ js_htmlCollection2_item()

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

◆ js_htmlCollection2_item2()

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

◆ js_htmlCollection2_namedItem()

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

◆ js_htmlCollection2_namedItem2()

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

◆ js_htmlCollection2_set_items()

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

◆ js_htmlCollection2_SetOpaque()

static void js_htmlCollection2_SetOpaque ( JSValueConst this_val,
void * node )
static

◆ js_htmlCollection2_toString()

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

Variable Documentation

◆ js_htmlCollection2_class

JSClassDef js_htmlCollection2_class
static
Initial value:
= {
"htmlCollection2",
}
static void js_htmlColection2_finalizer(JSRuntime *rt, JSValue val)
Definition collection2.c:58

◆ js_htmlCollection2_class_id

JSClassID js_htmlCollection2_class_id

◆ js_htmlCollection2_proto_funcs

const JSCFunctionListEntry js_htmlCollection2_proto_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("length", js_htmlCollection2_get_property_length, NULL),
JS_CFUNC_DEF("item", 1, js_htmlCollection2_item),
JS_CFUNC_DEF("namedItem", 1, js_htmlCollection2_namedItem),
}
#define NULL
Definition explodename.c:35
static JSValue js_htmlCollection2_namedItem(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition collection2.c:233
static JSValue js_htmlCollection2_item(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition collection2.c:133
static JSValue js_htmlCollection2_get_property_length(JSContext *ctx, JSValueConst this_val)
Definition collection2.c:77

◆ map_collections2

void* map_collections2

◆ map_rev_collections2

void* map_rev_collections2