Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16:/tmp/cvs-serv31366/compiler/semantics
Modified Files:
subtyping.c
Log Message:
-- Simplify the typing of the item-sequence-to-node-sequence function
Index: subtyping.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/subtyping.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- subtyping.c 20 Feb 2007 14:25:48 -0000 1.43
+++ subtyping.c 27 Apr 2007 12:55:23 -0000 1.44
@@ -2101,9 +2101,13 @@
PFty_t
PFty_is2ns (PFty_t t)
{
+ /* make sure that the empty sequence
+ is not treated as an atomic value */
+ if (PFty_subtype (t, PFty_empty ()))
+ return t;
/* ensure that every comination of atomic values
returns only a single text node */
- if (PFty_subtype (t, PFty_star (PFty_atomic ())))
+ else if (PFty_subtype (t, PFty_star (PFty_atomic ())))
return PFty_text();
switch (t.type) {
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins