diff --git a/src/sbbs3/js_bbs.cpp b/src/sbbs3/js_bbs.cpp index 15b06d68e16b78cd4ee20b4ef8766e84e7fecec1..8cf0c3d6a71447aae303cab8430392c7fd171ef8 100644 --- a/src/sbbs3/js_bbs.cpp +++ b/src/sbbs3/js_bbs.cpp @@ -845,7 +845,7 @@ static jsSyncPropertySpec js_bbs_properties[] = { { "msg_number" ,BBS_PROP_MSG_NUMBER ,PROP_READONLY ,310}, { "msg_expiration" ,BBS_PROP_MSG_EXPIRATION ,PROP_READONLY ,310}, { "msg_forwarded" ,BBS_PROP_MSG_FORWARDED ,PROP_READONLY ,310}, - { "msg_thread_back" ,BBS_PROP_MSG_THREAD_BACK ,PROP_READONLY ,311}, + { "msg_thread_back" ,BBS_PROP_MSG_THREAD_BACK ,PROP_READONLY ,312}, { "msg_thread_orig" ,BBS_PROP_MSG_THREAD_BACK ,JSPROP_READONLY,310}, /* alias */ { "msg_thread_next" ,BBS_PROP_MSG_THREAD_NEXT ,PROP_READONLY ,310}, { "msg_thread_first" ,BBS_PROP_MSG_THREAD_FIRST ,PROP_READONLY ,310}, @@ -2870,7 +2870,7 @@ JSObject* js_CreateBbsObject(JSContext* cx, JSObject* parent) return(NULL); #ifdef _DEBUG - js_DescribeSyncObject(cx,mods,"Global repository for 3rd party modifications",311); + js_DescribeSyncObject(cx,mods,"Global repository for 3rd party modifications",312); js_DescribeSyncObject(cx,obj,"Controls the Telnet/RLogin BBS experience",310); js_CreateArrayOfStrings(cx, obj, "_property_desc_list", bbs_prop_desc, JSPROP_READONLY); #endif diff --git a/src/sbbs3/js_console.cpp b/src/sbbs3/js_console.cpp index f85804b21f42866f770ebcaac8c5e263e2249353..a019c1a325d9cb66171fc397b0631cde6bc30385 100644 --- a/src/sbbs3/js_console.cpp +++ b/src/sbbs3/js_console.cpp @@ -1255,7 +1255,7 @@ static jsSyncMethodSpec js_console_functions[] = { }, {"uselect", js_uselect, 0, JSTYPE_NUMBER, JSDOCSTR("[number, string title, string item, string ars]") ,JSDOCSTR("user selection menu, call for each item, then with no args to display select menu") - ,310 + ,312 }, {"saveline", js_saveline, 0, JSTYPE_VOID, "" ,JSDOCSTR("save last output line") diff --git a/src/sbbs3/js_file.c b/src/sbbs3/js_file.c index 6a7b2b00a90801dfdda29a6ba404e502a745a39a..925fcd9f392170b03dca24f86c7a27d1a60c2403 100644 --- a/src/sbbs3/js_file.c +++ b/src/sbbs3/js_file.c @@ -1561,7 +1561,7 @@ static jsSyncMethodSpec js_file_functions[] = { "<tt>w+</tt> open an empty file for both reading and writing; if the given file exists, its contents are destroyed<br>" "<tt>a+</tt> open for reading and appending<br>" "<tt>b </tt> open in binary (untranslated) mode; translations involving carriage-return and linefeed characters are suppressed (e.g. <tt>r+b</tt>)<br>" - "<tt>e </tt> open a <i>non-shareable</i> file (that must not already exist) for <i>exclusive</i> access<br>" + "<tt>e </tt> open a <i>non-shareable</i> file (that must not already exist) for <i>exclusive</i> access <i>(introduced in v3.12)</i><br>" ) ,310 }, @@ -1657,7 +1657,7 @@ static jsSyncMethodSpec js_file_functions[] = { ,JSDOCSTR("set the specified <i>key</i> to the specified <i>value</i> in the specified <i>section</i> " "of a <tt>.ini</tt> file. " "to set a key in the <i>root</i> section, pass <i>null</i> for <i>section</i>. ") - ,311 + ,312 }, {"iniGetObject", js_iniGetObject, 1, JSTYPE_OBJECT, JSDOCSTR("[section]") ,JSDOCSTR("parse an entire section from a .ini file " @@ -1669,7 +1669,7 @@ static jsSyncMethodSpec js_file_functions[] = { ,JSDOCSTR("write all the properties of the specified <i>object</i> as separate <tt>key=value</tt> pairs " "in the specified <i>section</i> of a <tt>.ini</tt> file. " "to write an object in the <i>root</i> section, pass <i>null</i> for <i>section</i>. ") - ,311 + ,312 }, {"iniGetAllObjects",js_iniGetAllObjects,1, JSTYPE_ARRAY, JSDOCSTR("[name_property] [,prefix]") ,JSDOCSTR("parse all sections from a .ini file and return all (non-<i>root</i>) sections " @@ -1683,7 +1683,7 @@ static jsSyncMethodSpec js_file_functions[] = { {"iniSetAllObjects",js_iniSetAllObjects,1, JSTYPE_ARRAY, JSDOCSTR("object array [,name_property]") ,JSDOCSTR("write an array of objects to a .ini file, each object in its own section named " "after the object's <i>name_property</i> (default: <tt>name</tt>)") - ,311 + ,312 }, {0} }; @@ -1777,7 +1777,9 @@ js_file_constructor(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval "<li>optional end-of-text (<i>etx</i>) character for automatic record padding/termination" "<li>Synchronet <tt>.dat</tt> files use an <i>etx</i> value of 3 (Ctrl-C)" "</ol>" - "<li>supports <tt>.ini</tt> formated configuration files" + "<li>supports <tt>.ini</tt> formated configuration files<ol type=square>" + "<li>concept and support of <i>root</i> ini sections added in v3.12" + "</ol>" "<li>optional ROT13 encoding/translation" "</ol>" "<li>Dynamically-calculated industry standard checksums (e.g. CRC-16, CRC-32, MD5)" diff --git a/src/sbbs3/js_file_area.c b/src/sbbs3/js_file_area.c index f5c03b57b58c41c7fa9442b3ba094b338d22b15c..a485342dee9aab27cb7687733586210fdde538ef 100644 --- a/src/sbbs3/js_file_area.c +++ b/src/sbbs3/js_file_area.c @@ -42,7 +42,7 @@ #ifdef _DEBUG static char* lib_prop_desc[] = { - "index into lib_list array (or -1 if not in array)" + "index into lib_list array (or -1 if not in array) <i>(introduced in v3.12)</i>" ,"unique number for this library" ,"library name" ,"library description" @@ -53,11 +53,11 @@ static char* lib_prop_desc[] = { static char* dir_prop_desc[] = { - "index into dir_list array (or -1 if not in array)" + "index into dir_list array (or -1 if not in array) <i>(introduced in v3.12)</i>" ,"unique number for this directory" - ,"library index" + ,"library index <i>(introduced in v3.12)</i>" ,"library number" - ,"library name" + ,"library name <i>(introduced in v3.12)</i>" ,"directory internal code" ,"directory name" ,"directory description" diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c index ed06d944ed93dedfb89d8e3397570cf8f6292584..53d7f5e48d8247625993b842bc808bb0fb197741 100644 --- a/src/sbbs3/js_global.c +++ b/src/sbbs3/js_global.c @@ -2424,7 +2424,7 @@ static jsSyncMethodSpec js_global_functions[] = { "The result (last executed statement) of the executed script will also be automatically " "written to the <i>parent_queue</i> " "which may be read later by the parent script.") - ,311 + ,312 }, {"sleep", js_mswait, 0, JSTYPE_ALIAS }, {"mswait", js_mswait, 0, JSTYPE_VOID, JSDOCSTR("[number milliseconds]") @@ -2489,7 +2489,7 @@ static jsSyncMethodSpec js_global_functions[] = { {"backslash", js_backslash, 1, JSTYPE_STRING, JSDOCSTR("string path") ,JSDOCSTR("returns directory path with trailing (platform-specific) path delimeter " "(i.e. \"slash\" or \"backslash\")") - ,311 + ,312 }, {"file_getname", js_getfname, 1, JSTYPE_STRING, JSDOCSTR("string path") ,JSDOCSTR("returns filename portion of passed path string") @@ -2564,7 +2564,7 @@ static jsSyncMethodSpec js_global_functions[] = { {"file_mutex", js_fmutex, 1, JSTYPE_BOOLEAN, JSDOCSTR("string filename [,text]") ,JSDOCSTR("attempts to create an exclusive (e.g. lock) file, " "optionally with the contents of <i>text</i>") - ,311 + ,312 }, {"directory", js_directory, 1, JSTYPE_ARRAY, JSDOCSTR("string pattern [,flags]") ,JSDOCSTR("returns an array of directory entries, " diff --git a/src/sbbs3/js_msg_area.c b/src/sbbs3/js_msg_area.c index 880a54a60b9ebca30ee31e74356384ccdce4983b..0a37471b964262fc47a9439bc56cb8c26c25a921 100644 --- a/src/sbbs3/js_msg_area.c +++ b/src/sbbs3/js_msg_area.c @@ -46,7 +46,7 @@ enum { /* msg_area Object Properties */ #ifdef _DEBUG static char* msg_grp_prop_desc[] = { - "index into grp_list array (or -1 if not in array)" + "index into grp_list array (or -1 if not in array) <i>(introduced in v3.12)</i>" ,"unique number for this message group" ,"group name" ,"group description" @@ -56,11 +56,11 @@ static char* msg_grp_prop_desc[] = { static char* msg_area_prop_desc[] = { - "index into sub_list array (or -1 if not in array)" - ,"group's index into grp_list array" + "index into sub_list array (or -1 if not in array) <i>(introduced in v3.12)</i>" + ,"group's index into grp_list array <i>(introduced in v3.12)</i>" ,"unique number for this sub-board" ,"group number" - ,"group name" + ,"group name <i>(introduced in v3.12)</i>" ,"sub-board internal code" ,"sub-board name" ,"sub-board description" diff --git a/src/sbbs3/js_msgbase.c b/src/sbbs3/js_msgbase.c index e80bf848624893203ddfbb98c5a337433322953f..424bc4819f49923c0791abc260d14690b1066f05 100644 --- a/src/sbbs3/js_msgbase.c +++ b/src/sbbs3/js_msgbase.c @@ -1642,9 +1642,9 @@ static jsSyncMethodSpec js_msgbase_functions[] = { }, {"get_msg_header", js_get_msg_header, 2, JSTYPE_OBJECT, JSDOCSTR("[boolean by_offset,] number_or_id [,boolean expand_fields]") ,JSDOCSTR("returns a specific message header, <i>null</i> on failure. " - "Pass <i>false</i> for the <i>expand_fields</i> argument (default: <i>true</i>) " + "<br><i>New in v3.12:</i> Pass <i>false</i> for the <i>expand_fields</i> argument (default: <i>true</i>) " "if you will be re-writing the header later with <i>put_msg_header()</i>") - ,310 + ,312 }, {"put_msg_header", js_put_msg_header, 2, JSTYPE_BOOLEAN, JSDOCSTR("[boolean by_offset,] number, object header") ,JSDOCSTR("write a message header") @@ -1731,16 +1731,16 @@ static jsSyncMethodSpec js_msgbase_functions[] = { "<tr><td align=top><tt>field_list[].type</tt><td>Other SMB header fields (type)" "<tr><td align=top><tt>field_list[].data</tt><td>Other SMB header fields (data)" "</table>" - "<br>" + "<br><i>New in v3.12:</i> " "The optional <i>client</i> argument is an instance of the <i>Client</i> class to be used for the " "security log header fields (e.g. sender IP address, hostname, protocol, and port). " - "<br><br>" + "<br><br><i>New in v3.12:</i> " "The optional <i>rcpt_list</i> is an array of objects that specifies multiple recipients " "for a single message (e.g. bulk e-mail). Each object in the array may include the following header properties " "(described above): <br>" "<i>to</i>, <i>to_ext</i>, <i>to_org</i>, <i>to_net_type</i>, <i>to_net_addr</i>, and <i>to_agent</i>" ) - ,310 + ,312 }, {0} }; diff --git a/src/sbbs3/js_system.c b/src/sbbs3/js_system.c index dd3324567bb19a61ce788ac8b60a7f0c8392c96f..e639a14623e98383db1e26ab3f84796a53bb11ad 100644 --- a/src/sbbs3/js_system.c +++ b/src/sbbs3/js_system.c @@ -391,7 +391,7 @@ static jsSyncPropertySpec js_system_properties[] = { /* filenames */ { "devnull", SYS_PROP_DEVNULL ,SYSOBJ_FLAGS, 311 }, - { "temp_path", SYS_PROP_TEMP_PATH ,SYSOBJ_FLAGS, 311 }, + { "temp_path", SYS_PROP_TEMP_PATH ,SYSOBJ_FLAGS, 312 }, /* clock access */ { "clock_ticks", SYS_PROP_CLOCK ,SYSOBJ_FLAGS, 311 }, diff --git a/src/sbbs3/js_xtrn_area.c b/src/sbbs3/js_xtrn_area.c index 1db0489d6fff9ae0bc520e18276b6d2a08f6130f..78c50850af060a2cec1a78e05dfb92c42c6328a1 100644 --- a/src/sbbs3/js_xtrn_area.c +++ b/src/sbbs3/js_xtrn_area.c @@ -43,7 +43,7 @@ static char* xtrn_sec_prop_desc[] = { - "index into sec_list array (or -1 if not in index)" + "index into sec_list array (or -1 if not in index) <i>(introduced in v3.12)</i>" ,"unique number for this external program section" ,"external program section internal code" ,"external program section name" @@ -53,11 +53,11 @@ static char* xtrn_sec_prop_desc[] = { static char* xtrn_prog_prop_desc[] = { - "index into prog_list array (or -1 if not in index)" + "index into prog_list array (or -1 if not in index) <i>(introduced in v3.12)</i>" ,"program number" - ,"progarm section index" + ,"progarm section index <i>(introduced in v3.12)</i>" ,"program section number" - ,"program section internal code" + ,"program section internal code <i>(introduced in v3.12)</i>" ,"internal code" ,"name" ,"command-line"