svn commit: samba r7262 - in branches/SAMBA_4_0/source/scripting/ejs: .

tpot at samba.org tpot at samba.org
Sat Jun 4 03:35:39 GMT 2005


Author: tpot
Date: 2005-06-04 03:35:38 +0000 (Sat, 04 Jun 2005)
New Revision: 7262

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7262

Log:
Add a length property to ARGV array.

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbscript.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbscript.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbscript.c	2005-06-04 03:32:18 UTC (rev 7261)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbscript.c	2005-06-04 03:35:38 UTC (rev 7262)
@@ -78,6 +78,7 @@
 		argv_list = str_list_add(argv_list, argv[i]);
 	}
 	v = mprList("ARGV", argv_list);
+	mprSetPropertyValue(&v, "length", mprCreateIntegerVar(argc - 2));
 	mprCreateProperty(ejsGetGlobalObject(eid), "ARGV", &v);
 
 	/* load the script and advance past interpreter line*/



More information about the samba-cvs mailing list