0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

[mujs] scroll2 and scroll3

This commit is contained in:
Witold Filipczyk
2022-08-20 20:52:26 +02:00
parent 7c31c7ce25
commit 6e90827d3f
5 changed files with 51 additions and 32 deletions

View File

@@ -85,10 +85,12 @@ struct ecmascript_interpreter {
#endif
#ifdef CONFIG_QUICKJS
JSValueConst fun;
#else
#endif
#ifdef CONFIG_ECMASCRIPT_SMJS
JS::RootedValue fun;
#endif
#ifdef CONFIG_MUJS
const char *fun;
#endif
bool changed;
};
@@ -147,6 +149,10 @@ timer_id_T ecmascript_set_timeout2(struct ecmascript_interpreter *interpreter, J
timer_id_T ecmascript_set_timeout2q(struct ecmascript_interpreter *interpreter, JSValue f, int timeout);
#endif
#ifdef CONFIG_MUJS
timer_id_T ecmascript_set_timeout2m(struct ecmascript_interpreter *interpreter, const char *handle, int timeout);
#endif
int get_ecmascript_enable(struct ecmascript_interpreter *interpreter);
void check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text);