1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[mujs] input.c

This commit is contained in:
Witold Filipczyk 2023-04-14 18:30:32 +02:00
parent 90b6d8d320
commit a1467ab2ec
4 changed files with 1354 additions and 2 deletions

View File

@ -1,6 +1,6 @@
top_builddir=../../../.. top_builddir=../../../..
include $(top_builddir)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = attr.o attributes.o collection.o console.o form.o forms.o history.o implementation.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 history.o implementation.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 include $(top_srcdir)/Makefile.lib

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,2 @@
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'form.c', 'forms.c', 'history.c', 'implementation.c', 'keyboard.c', srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'form.c', 'forms.c', 'history.c', 'implementation.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') 'localstorage.c', 'location.c', 'mapa.cpp', 'message.c', 'navigator.c', 'nodelist.c', 'screen.c', 'unibar.c', 'window.c', 'xhr.c')

View File

@ -50,6 +50,8 @@
#include <libxml++/libxml++.h> #include <libxml++/libxml++.h>
#include <map> #include <map>
#ifndef CONFIG_LIBDOM
static std::map<struct form_state *, void *> map_inputs; static std::map<struct form_state *, void *> map_inputs;
/* Accordingly to the JS specs, each input type should own object. That'd be a /* Accordingly to the JS specs, each input type should own object. That'd be a
@ -1436,3 +1438,4 @@ mjs_push_input_object(js_State *J, struct form_state *fs)
} }
map_inputs[fs] = fs; map_inputs[fs] = fs;
} }
#endif