svn commit: samba r8240 - in branches/SAMBA_4_0/source/lib/ejs: .
tridge at samba.org
tridge at samba.org
Fri Jul 8 10:39:17 GMT 2005
Author: tridge
Date: 2005-07-08 10:39:16 +0000 (Fri, 08 Jul 2005)
New Revision: 8240
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8240
Log:
support comparing pointers in ejs. This allows for
if (io.output.samr == NULL) {
print("no result\n");
}
Modified:
branches/SAMBA_4_0/source/lib/ejs/ejsParser.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ejs/ejsParser.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ejs/ejsParser.c 2005-07-08 10:30:50 UTC (rev 8239)
+++ branches/SAMBA_4_0/source/lib/ejs/ejsParser.c 2005-07-08 10:39:16 UTC (rev 8240)
@@ -1659,10 +1659,13 @@
case MPR_TYPE_CFUNCTION:
case MPR_TYPE_FUNCTION:
case MPR_TYPE_OBJECT:
- case MPR_TYPE_PTR:
mprCopyVarValue(&ep->result, mprCreateBoolVar(0), 0);
return 0;
+ case MPR_TYPE_PTR:
+ mprCopyVarValue(&ep->result, mprCreateBoolVar(lhs->ptr == rhs->ptr), 0);
+ return 0;
+
case MPR_TYPE_BOOL:
rc = evalBoolExpr(ep, lhs->boolean, rel, rhs->boolean);
break;
More information about the samba-cvs
mailing list