svn commit: samba r9465 - in branches/SAMBA_4_0:
source/scripting/libjs swat/scripting/client
tridge at samba.org
tridge at samba.org
Mon Aug 22 01:52:23 GMT 2005
Author: tridge
Date: 2005-08-22 01:52:22 +0000 (Mon, 22 Aug 2005)
New Revision: 9465
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9465
Log:
handle encoding and decoding of pointers, representing them as a
string containing "(POINTER)"
Modified:
branches/SAMBA_4_0/source/scripting/libjs/encoder.js
branches/SAMBA_4_0/swat/scripting/client/encoder.js
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/libjs/encoder.js
===================================================================
--- branches/SAMBA_4_0/source/scripting/libjs/encoder.js 2005-08-22 01:51:02 UTC (rev 9464)
+++ branches/SAMBA_4_0/source/scripting/libjs/encoder.js 2005-08-22 01:52:22 UTC (rev 9465)
@@ -52,6 +52,8 @@
r = s.sprintf("%s:%s:%s:", name, t, "" + e);
} else if (t == "undefined" || t == "null") {
r = s.sprintf("%s:%s:", name, t);
+ } else if (t == "pointer") {
+ r = s.sprintf("%s:string:(POINTER):", name);
} else {
println("Unable to linearise type " + t);
r = "";
Modified: branches/SAMBA_4_0/swat/scripting/client/encoder.js
===================================================================
--- branches/SAMBA_4_0/swat/scripting/client/encoder.js 2005-08-22 01:51:02 UTC (rev 9464)
+++ branches/SAMBA_4_0/swat/scripting/client/encoder.js 2005-08-22 01:52:22 UTC (rev 9465)
@@ -71,7 +71,7 @@
value = a[a.i]; a.i++;
o[name] = value * 1;
} else {
- alert("Unable to delinearise type " + t);
+ alert("Unable to delinearise type " + type);
}
}
return o;
More information about the samba-cvs
mailing list