0
0
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:
Miciah Dashiel Butler Masters
2006-02-26 08:51:36 +00:00
committed by Miciah Dashiel Butler Masters
parent 368504f736
commit 4b3d88dd6e
6 changed files with 14 additions and 42 deletions

View File

@@ -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
);