mirror of
https://github.com/rkd77/elinks.git
synced 2025-09-21 19:46:23 -04:00
Delegate ECMAScript submodule initialisation the right way
Replace the ECMAScript module initialisation and de-initialisation routines that wrapped the SMJS and SEE module initialisation and de-initialisation routines by having the module system call the SMJS and SEE routines its own darned self.
This commit is contained in:
committed by
Miciah Dashiel Butler Masters
parent
368504f736
commit
4b3d88dd6e
@@ -62,26 +62,6 @@ static struct option_info ecmascript_options[] = {
|
||||
NULL_OPTION_INFO,
|
||||
};
|
||||
|
||||
void
|
||||
ecmascript_init(struct module *module)
|
||||
{
|
||||
#ifdef CONFIG_ECMASCRIPT_SEE
|
||||
see_init();
|
||||
#else
|
||||
spidermonkey_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
ecmascript_done(struct module *module)
|
||||
{
|
||||
#ifdef CONFIG_ECMASCRIPT_SEE
|
||||
see_done();
|
||||
#else
|
||||
spidermonkey_done();
|
||||
#endif
|
||||
}
|
||||
|
||||
struct ecmascript_interpreter *
|
||||
ecmascript_get_interpreter(struct view_state *vs)
|
||||
{
|
||||
@@ -249,6 +229,6 @@ struct module ecmascript_module = struct_module(
|
||||
/* events: */ NULL,
|
||||
/* submodules: */ ecmascript_modules,
|
||||
/* data: */ NULL,
|
||||
/* init: */ ecmascript_init,
|
||||
/* done: */ ecmascript_done
|
||||
/* init: */ NULL,
|
||||
/* done: */ NULL
|
||||
);
|
||||
|
Reference in New Issue
Block a user