Update of /cvsroot/monetdb/pathfinder/compiler/mil
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18765/compiler/mil
Modified Files:
milprint_summer.c
Log Message:
propagated changes of Thursday Feb 22 2007 - Friday Feb 23 2007
from the XQuery_0-16 branch to the development trunk
Index: milprint_summer.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mil/milprint_summer.c,v
retrieving revision 1.327
retrieving revision 1.328
diff -u -d -r1.327 -r1.328
--- milprint_summer.c 22 Feb 2007 11:34:38 -0000 1.327
+++ milprint_summer.c 23 Feb 2007 15:11:01 -0000 1.328
@@ -6218,7 +6218,7 @@
static void
translateXRPCCall (opt_t *f, int cur_level, int counter, PFcnode_t *xrpc)
{
- int i = 0, rc = NORMAL, updCall = PFqueryType(xrpc) == 1 ? 1 : 0;
+ int i = 0, rc = NORMAL, updCall = PFqueryType(xrpc) == 0 ? 0 : 1;
PFcnode_t *dsts = L(xrpc);
PFfun_t *fun = R(xrpc)->sem.fun;
PFcnode_t *args = RD(xrpc);
@@ -6520,7 +6520,7 @@
"} # end of translate pf:collection (string) as node*\n",
(rc)?item_ext:val_join(STR));
return NORMAL;
} else if (PFqname_eq(fnQname,PFqname (PFns_lib,"documents")) == 0 ||
- (PFqname_eq(fnQname,PFqname (PFns_lib,"documents-unsafe")) == 0
&& (rc=1)))
+ (rc = 1, PFqname_eq(fnQname,PFqname
(PFns_lib,"documents-unsafe")) == 0))
{
char *consistent = rc?"false":"true";
if (fun->arity) {
@@ -6545,7 +6545,7 @@
"} # end of translate fn:documents (string?) as string*\n");
return NORMAL;
} else if (PFqname_eq(fnQname,PFqname (PFns_lib,"collections")) == 0 ||
- (PFqname_eq(fnQname,PFqname (PFns_lib,"collections-unsafe")) ==
0 && (rc=1)))
+ (rc = 1, PFqname_eq(fnQname,PFqname
(PFns_lib,"collections-unsafe")) == 0))
{
char *consistent = rc?"false":"true";
milprintf(f,
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins