Skip to content
Snippets Groups Projects
Commit 314303c6 authored by rswindell's avatar rswindell
Browse files

Created sub/dir/prog property for grp/lib/sec number.

parent 2b59c44d
No related branches found
No related tags found
No related merge requests found
......@@ -173,6 +173,10 @@ JSObject* DLLCALL js_CreateFileAreaObject(JSContext* cx, JSObject* parent, scfg_
if(!JS_SetProperty(cx, dirobj, "number", &val))
return(NULL);
val=INT_TO_JSVAL(cfg->dir[d]->lib);
if(!JS_SetProperty(cx, dirobj, "lib_number", &val))
return(NULL);
if((js_str=JS_NewStringCopyZ(cx, cfg->dir[d]->code))==NULL)
return(NULL);
val=STRING_TO_JSVAL(js_str);
......
......@@ -240,6 +240,10 @@ JSObject* DLLCALL js_CreateMsgAreaObject(JSContext* cx, JSObject* parent, scfg_t
if(!JS_SetProperty(cx, subobj, "number", &val))
return(NULL);
val=INT_TO_JSVAL(cfg->sub[d]->grp);
if(!JS_SetProperty(cx, subobj, "grp_number", &val))
return(NULL);
if(cfg->sub[d]->newsgroup[0])
SAFECOPY(str,cfg->sub[d]->newsgroup);
else {
......
......@@ -225,6 +225,10 @@ JSObject* DLLCALL js_CreateXtrnAreaObject(JSContext* cx, JSObject* parent, scfg_
if(!JS_SetProperty(cx, progobj, "number", &val))
return(NULL);
val=INT_TO_JSVAL(cfg->xtrn[d]->sec);
if(!JS_SetProperty(cx, progobj, "sec_number", &val))
return(NULL);
if(user==NULL || chk_ar(cfg,cfg->xtrn[d]->run_ar,user))
val=BOOLEAN_TO_JSVAL(JS_TRUE);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment