mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[quickjs] Missing variables
This commit is contained in:
parent
e4f195c7ad
commit
431e3caf2d
@ -24,6 +24,8 @@ extern void *map_rev_forms;
|
||||
extern void *map_inputs;
|
||||
extern void *map_nodelist;
|
||||
extern void *map_rev_nodelist;
|
||||
extern void *map_form_elements;
|
||||
extern void *map_form_elements_rev;
|
||||
|
||||
void attr_save_in_map(void *m, void *node, JSValueConst value);
|
||||
void attr_save_in_map_void(void *m, void *node, void *value);
|
||||
|
@ -83,6 +83,9 @@ quickjs_init(struct module *xxx)
|
||||
map_inputs = attr_create_new_input_map();
|
||||
map_nodelist = attr_create_new_nodelist_map();
|
||||
map_rev_nodelist = attr_create_new_nodelist_map_rev();
|
||||
|
||||
map_form_elements = attr_create_new_form_elements_map();
|
||||
map_form_elements_rev = attr_create_new_form_elements_map_rev();
|
||||
//js_module_init_ok = spidermonkey_runtime_addref();
|
||||
}
|
||||
|
||||
@ -108,6 +111,9 @@ quickjs_done(struct module *xxx)
|
||||
attr_clear_map(map_nodelist);
|
||||
attr_clear_map_rev(map_rev_nodelist);
|
||||
|
||||
attr_clear_map(map_form_elements);
|
||||
attr_clear_map_rev(map_form_elements_rev);
|
||||
|
||||
attr_delete_map(map_attrs);
|
||||
attr_delete_map(map_attributes);
|
||||
attr_delete_map_rev(map_rev_attributes);
|
||||
@ -124,6 +130,9 @@ quickjs_done(struct module *xxx)
|
||||
attr_delete_map(map_nodelist);
|
||||
attr_delete_map_rev(map_rev_nodelist);
|
||||
|
||||
attr_delete_map(map_form_elements);
|
||||
attr_delete_map_rev(map_form_elements_rev);
|
||||
|
||||
// if (js_module_init_ok)
|
||||
// spidermonkey_runtime_release();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user