mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[viewer] form.cpp -> form.c
This commit is contained in:
parent
bf99de3d92
commit
899304d6ef
@ -440,3 +440,34 @@ ecmascript_current_link_evhook(struct document_view *doc_view, enum script_event
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ecmascript_detach_form_view(struct form_view *fv)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_MUJS
|
||||||
|
#elif defined(CONFIG_QUICKJS)
|
||||||
|
quickjs_detach_form_view(fv);
|
||||||
|
#else
|
||||||
|
spidermonkey_detach_form_view(fv);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void ecmascript_detach_form_state(struct form_state *fs)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_MUJS
|
||||||
|
#elif defined(CONFIG_QUICKJS)
|
||||||
|
quickjs_detach_form_state(fs);
|
||||||
|
#else
|
||||||
|
spidermonkey_detach_form_state(fs);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void ecmascript_moved_form_state(struct form_state *fs)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_MUJS
|
||||||
|
#elif defined(CONFIG_QUICKJS)
|
||||||
|
quickjs_moved_form_state(fs);
|
||||||
|
#else
|
||||||
|
spidermonkey_moved_form_state(fs);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@ -13,6 +13,8 @@ struct document;
|
|||||||
struct document_options;
|
struct document_options;
|
||||||
struct document_view;
|
struct document_view;
|
||||||
struct ecmascript_interpreter;
|
struct ecmascript_interpreter;
|
||||||
|
struct form_state;
|
||||||
|
struct form_view;
|
||||||
struct session;
|
struct session;
|
||||||
struct string;
|
struct string;
|
||||||
struct term_event;
|
struct term_event;
|
||||||
@ -34,6 +36,10 @@ void ecmascript_reset_state(struct view_state *vs);
|
|||||||
int ecmascript_current_link_evhook(struct document_view *doc_view, enum script_event_hook_type type);
|
int ecmascript_current_link_evhook(struct document_view *doc_view, enum script_event_hook_type type);
|
||||||
int ecmascript_eval_boolback(struct ecmascript_interpreter *interpreter, struct string *code);
|
int ecmascript_eval_boolback(struct ecmascript_interpreter *interpreter, struct string *code);
|
||||||
|
|
||||||
|
void ecmascript_detach_form_view(struct form_view *fv);
|
||||||
|
void ecmascript_detach_form_state(struct form_state *fs);
|
||||||
|
void ecmascript_moved_form_state(struct form_state *fs);
|
||||||
|
|
||||||
extern struct module ecmascript_module;
|
extern struct module ecmascript_module;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -395,37 +395,6 @@ ecmascript_eval_stringback(struct ecmascript_interpreter *interpreter,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
ecmascript_detach_form_view(struct form_view *fv)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_MUJS
|
|
||||||
#elif defined(CONFIG_QUICKJS)
|
|
||||||
quickjs_detach_form_view(fv);
|
|
||||||
#else
|
|
||||||
spidermonkey_detach_form_view(fv);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void ecmascript_detach_form_state(struct form_state *fs)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_MUJS
|
|
||||||
#elif defined(CONFIG_QUICKJS)
|
|
||||||
quickjs_detach_form_state(fs);
|
|
||||||
#else
|
|
||||||
spidermonkey_detach_form_state(fs);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void ecmascript_moved_form_state(struct form_state *fs)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_MUJS
|
|
||||||
#elif defined(CONFIG_QUICKJS)
|
|
||||||
quickjs_moved_form_state(fs);
|
|
||||||
#else
|
|
||||||
spidermonkey_moved_form_state(fs);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ecmascript_timeout_dialog(struct terminal *term, int max_exec_time)
|
ecmascript_timeout_dialog(struct terminal *term, int max_exec_time)
|
||||||
{
|
{
|
||||||
|
@ -156,10 +156,6 @@ void ecmascript_free_urls(struct module *module);
|
|||||||
|
|
||||||
struct ecmascript_interpreter *ecmascript_get_interpreter(struct view_state*vs);
|
struct ecmascript_interpreter *ecmascript_get_interpreter(struct view_state*vs);
|
||||||
|
|
||||||
void ecmascript_detach_form_view(struct form_view *fv);
|
|
||||||
void ecmascript_detach_form_state(struct form_state *fs);
|
|
||||||
void ecmascript_moved_form_state(struct form_state *fs);
|
|
||||||
|
|
||||||
void ecmascript_reset_state(struct view_state *vs);
|
void ecmascript_reset_state(struct view_state *vs);
|
||||||
|
|
||||||
void ecmascript_eval(struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret, int element_offset);
|
void ecmascript_eval(struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret, int element_offset);
|
||||||
|
@ -5,6 +5,6 @@ INCLUDES += $(TRE_CFLAGS)
|
|||||||
|
|
||||||
OBJS-$(CONFIG_MARKS) += marks.o
|
OBJS-$(CONFIG_MARKS) += marks.o
|
||||||
|
|
||||||
OBJS = draw.o form.obj link.o search.o textarea.o view.o vs.o
|
OBJS = draw.o form.o link.o search.o textarea.o view.o vs.o
|
||||||
|
|
||||||
include $(top_srcdir)/Makefile.lib
|
include $(top_srcdir)/Makefile.lib
|
||||||
|
@ -30,7 +30,11 @@
|
|||||||
#include "document/document.h"
|
#include "document/document.h"
|
||||||
#include "document/forms.h"
|
#include "document/forms.h"
|
||||||
#include "document/view.h"
|
#include "document/view.h"
|
||||||
#include "ecmascript/ecmascript.h"
|
|
||||||
|
#if defined(CONFIG_ECMASCRIPT_SMJS) || defined(CONFIG_QUICKJS) || defined(CONFIG_MUJS)
|
||||||
|
#include "ecmascript/ecmascript-c.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "intl/libintl.h"
|
#include "intl/libintl.h"
|
||||||
#include "formhist/formhist.h"
|
#include "formhist/formhist.h"
|
||||||
#include "mime/mime.h"
|
#include "mime/mime.h"
|
@ -4,4 +4,4 @@ if conf_data.get('CONFIG_MARKS')
|
|||||||
srcs += files('marks.c')
|
srcs += files('marks.c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
srcs += files('draw.c', 'form.cpp', 'link.c', 'search.c', 'textarea.c', 'view.c', 'vs.c')
|
srcs += files('draw.c', 'form.c', 'link.c', 'search.c', 'textarea.c', 'view.c', 'vs.c')
|
||||||
|
Loading…
Reference in New Issue
Block a user