Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit ec3d1ee3 authored by rswindell's avatar rswindell

Changed _list properties to be enumerable.

parent 1c44b07c
......@@ -93,7 +93,6 @@ JSObject* DLLCALL js_CreateFileAreaObject(JSContext* cx, JSObject* parent, scfg_
val=OBJECT_TO_JSVAL(lib_list);
if(!JS_SetProperty(cx, areaobj, "lib_list", &val))
return(NULL);
JS_SetPropertyAttributes(cx, areaobj, "lib_list", 0, &found);
for(l=0;l<cfg->total_libs;l++) {
......@@ -127,7 +126,6 @@ JSObject* DLLCALL js_CreateFileAreaObject(JSContext* cx, JSObject* parent, scfg_
val=OBJECT_TO_JSVAL(dir_list);
if(!JS_SetProperty(cx, libobj, "dir_list", &val))
return(NULL);
JS_SetPropertyAttributes(cx, libobj, "dir_list", 0, &found);
for(d=0;d<cfg->total_dirs;d++) {
if(cfg->dir[d]->lib!=l)
......
......@@ -145,7 +145,6 @@ JSObject* DLLCALL js_CreateMsgAreaObject(JSContext* cx, JSObject* parent, scfg_t
val=OBJECT_TO_JSVAL(grp_list);
if(!JS_SetProperty(cx, areaobj, "grp_list", &val))
return(NULL);
JS_SetPropertyAttributes(cx, areaobj, "grp_list", 0, &found);
for(l=0;l<cfg->total_grps;l++) {
......@@ -174,7 +173,6 @@ JSObject* DLLCALL js_CreateMsgAreaObject(JSContext* cx, JSObject* parent, scfg_t
val=OBJECT_TO_JSVAL(sub_list);
if(!JS_SetProperty(cx, grpobj, "sub_list", &val))
return(NULL);
JS_SetPropertyAttributes(cx, grpobj, "sub_list", 0, &found);
for(d=0;d<cfg->total_subs;d++) {
if(cfg->sub[d]->grp!=l)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment