1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[mujs] show version

This commit is contained in:
Witold Filipczyk 2024-09-22 19:18:50 +02:00
parent a4c85cfea1
commit c0870785fe

View File

@ -73,9 +73,14 @@
/*** Global methods */ /*** Global methods */
static char mujs_version[32];
static void static void
mujs_init(struct module *xxx) mujs_init(struct module *module)
{ {
snprintf(mujs_version, 31, "MuJS %d.%d.%d", JS_VERSION_MAJOR, JS_VERSION_MINOR, JS_VERSION_PATCH);
module->name = mujs_version;
map_attrs = attr_create_new_map(); map_attrs = attr_create_new_map();
map_attributes = attr_create_new_map(); map_attributes = attr_create_new_map();
map_rev_attributes = attr_create_new_map(); map_rev_attributes = attr_create_new_map();