mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[quickjs] form.c
This commit is contained in:
parent
def8f0570d
commit
934928d3b5
@ -1,6 +1,6 @@
|
||||
top_builddir=../../../..
|
||||
include $(top_builddir)/Makefile.config
|
||||
|
||||
OBJS = attr.o attributes.o collection.o console.o forms.o heartbeat.o history.o input.o keyboard.o localstorage.o location.o mapa.obj message.o navigator.o nodelist.o screen.o unibar.o window.o xhr.o
|
||||
OBJS = attr.o attributes.o collection.o console.o form.o forms.o heartbeat.o history.o input.o keyboard.o localstorage.o location.o mapa.obj message.o navigator.o nodelist.o screen.o unibar.o window.o xhr.o
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
|
1043
src/ecmascript/libdom/quickjs/form.c
Normal file
1043
src/ecmascript/libdom/quickjs/form.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -56,6 +56,38 @@ attr_create_new_collections_map(void)
|
||||
return (void *)mapa;
|
||||
}
|
||||
|
||||
void *
|
||||
attr_create_new_form_elements_map(void)
|
||||
{
|
||||
std::map<void *, JSValueConst> *mapa = new std::map<void *, JSValueConst>;
|
||||
|
||||
return (void *)mapa;
|
||||
}
|
||||
|
||||
void *
|
||||
attr_create_new_form_elements_map_rev(void)
|
||||
{
|
||||
std::map<JSValueConst, void *> *mapa = new std::map<JSValueConst, void *>;
|
||||
|
||||
return (void *)mapa;
|
||||
}
|
||||
|
||||
void *
|
||||
attr_create_new_form_map(void)
|
||||
{
|
||||
std::map<void *, JSValueConst> *mapa = new std::map<void *, JSValueConst>;
|
||||
|
||||
return (void *)mapa;
|
||||
}
|
||||
|
||||
void *
|
||||
attr_create_new_form_map_rev(void)
|
||||
{
|
||||
std::map<JSValueConst, void *> *mapa = new std::map<JSValueConst, void *>;
|
||||
|
||||
return (void *)mapa;
|
||||
}
|
||||
|
||||
void *
|
||||
attr_create_new_forms_map(void)
|
||||
{
|
||||
|
@ -15,6 +15,10 @@ void *attr_create_new_attributes_map(void);
|
||||
void *attr_create_new_attributes_map_rev(void);
|
||||
void *attr_create_new_collections_map(void);
|
||||
void *attr_create_new_collections_map_rev(void);
|
||||
void *attr_create_new_form_elements_map(void);
|
||||
void *attr_create_new_form_elements_map_rev(void);
|
||||
void *attr_create_new_form_map(void);
|
||||
void *attr_create_new_form_map_rev(void);
|
||||
void *attr_create_new_forms_map(void);
|
||||
void *attr_create_new_forms_map_rev(void);
|
||||
void *attr_create_new_input_map(void);
|
||||
|
@ -1,2 +1,2 @@
|
||||
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'forms.c', 'heartbeat.c', 'history.c', 'input.c', 'keyboard.c', 'localstorage.c', 'location.c',
|
||||
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'form.c', 'forms.c', 'heartbeat.c', 'history.c', 'input.c', 'keyboard.c', 'localstorage.c', 'location.c',
|
||||
'mapa.cpp', 'message.c', 'navigator.c', 'nodelist.c', 'screen.c', 'unibar.c', 'window.c', 'xhr.c')
|
||||
|
@ -49,6 +49,8 @@
|
||||
#include <libxml++/libxml++.h>
|
||||
#include <map>
|
||||
|
||||
#ifndef CONFIG_LIBDOM
|
||||
|
||||
#define countof(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
static JSClassID js_form_class_id;
|
||||
@ -1156,3 +1158,4 @@ getForm(JSContext *ctx, struct form *form)
|
||||
|
||||
RETURN_JS(form_obj);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user