From f50665b2d1a67433cc8df61aaa861ad36d1c97f1 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 24 May 2010 01:47:45 +0000 Subject: [PATCH] Introduced system.architecture property (string, e.g. "i686"). --- src/sbbs3/js_system.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/js_system.c b/src/sbbs3/js_system.c index 2d710dcbcd..dd8c7ed693 100644 --- a/src/sbbs3/js_system.c +++ b/src/sbbs3/js_system.c @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -503,6 +503,7 @@ static char* sys_prop_desc[] = { ,"Synchronet version number in decimal (e.g. 31301 for v3.13b)" ,"Synchronet version number in hexadecimal (e.g. 0x31301 for v3.13b)" ,"platform description (e.g. 'Win32', 'Linux', 'FreeBSD')" + ,"architecture description (e.g. 'i386', 'i686', 'x86_64')" ,"socket library version information" ,"message base library version information" ,"compiler used to build Synchronet" @@ -1860,6 +1861,7 @@ static JSBool js_system_resolve(JSContext *cx, JSObject *obj, jsval id) LAZY_INTEGER("version_hex", VERSION_HEX); LAZY_STRING("platform", PLATFORM_DESC); + LAZY_STRING("architecture", ARCHITECTURE_DESC); LAZY_STRFUNC("msgbase_lib", sprintf(str,"SMBLIB %s",smb_lib_ver()), str); LAZY_STRFUNC("compiled_with", DESCRIBE_COMPILER(str), str); LAZY_STRFUNC("compiled_when", sprintf(str,"%s %.5s",__DATE__,__TIME__), str); -- GitLab