Update of /cvsroot/monetdb/pathfinder/compiler/include
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14486/compiler/include

Modified Files:
      Tag: M5XQ
        core.h 
Log Message:
propagated changes of Thursday Nov 05 2009 - Monday Nov 09 2009
from the development trunk to the M5XQ branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/11/05 - singhan: compiler/include/core.h,1.48
  XQuery full-text search support initial version!
  
  This initial version provides support to
  
  -ftcontains keyword,
  
  e.g., for $f in doc("menu.xml")//food[./name ftcontains "Belgian Waffles"]
  return $f
  The above query will return all the food nodes that has some relevancy over 
"Belgian Waffles"
  
  -initial score variable support
  
  e.g., for $f score $s in doc("menu.xml")//food[./name ftcontains "Belgian 
Waffles"]
  return $s
  The above query will return the relevancy score of all the matched food 
nodes, however since its an initial version, the support to this score variable 
is very limited.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: core.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/core.h,v
retrieving revision 1.47
retrieving revision 1.47.4.1
diff -u -d -r1.47 -r1.47.4.1
--- core.h      14 Jan 2009 21:52:08 -0000      1.47
+++ core.h      9 Nov 2009 00:04:03 -0000       1.47.4.1
@@ -165,6 +165,9 @@
 
   /* Pathfinder extension: XRPC */
   , c_xrpc               = 76 /**< XRPC calls: "execute at" */
+
+  /* Associated For variable holders */
+  , c_vars               = 77 /**< variable pair (position. var + score. var) 
of a for */
 };
 
 /** Core tree node type indicators */
@@ -186,7 +189,7 @@
 
     /* semantic content for flwr subexpressions (let/for) */
     struct {
-        PFty_t (*quantifier) (PFty_t); 
+        PFty_t (*quantifier) (PFty_t);
                            /**< quantifier for flwor return expression */
         int    fid;        /**< for loop id (used in milprint_summer.c) */
     } flwr;
@@ -230,13 +233,13 @@
 /* initialize global variables */
 void PFcore_init (void);
 
-/** 
+/**
  * Core constructor functions below.
  */
 PFcnode_t *PFcore_leaf (PFctype_t);
-PFcnode_t *PFcore_wire1 (PFctype_t, 
+PFcnode_t *PFcore_wire1 (PFctype_t,
                          const PFcnode_t *);
-PFcnode_t *PFcore_wire2 (PFctype_t, 
+PFcnode_t *PFcore_wire2 (PFctype_t,
                          const PFcnode_t *, const PFcnode_t *);
 
 PFcnode_t *PFcore_nil (void);
@@ -269,6 +272,7 @@
 PFcnode_t *PFcore_for (const PFcnode_t *, const PFcnode_t *);
 PFcnode_t *PFcore_forbind (const PFcnode_t *, const PFcnode_t *);
 PFcnode_t *PFcore_forvars (const PFcnode_t *, const PFcnode_t *);
+PFcnode_t *PFcore_forvars2 (const PFcnode_t *, const PFcnode_t *, const 
PFcnode_t *);
 
 PFcnode_t *PFcore_let (const PFcnode_t *, const PFcnode_t *);
 PFcnode_t *PFcore_letbind (const PFcnode_t *, const PFcnode_t *);
@@ -320,6 +324,11 @@
 PFcnode_t *PFcore_some (const PFcnode_t *, const PFcnode_t *, const PFcnode_t 
*);
 
 /**
+ * Full-text score variable
+ */
+/*PFcnode_t *PFcore_forscore (const PFcnode_t *, const PFcnode_t *);*/
+
+/**
  * Wrapper for #apply_.
  */
 #define APPLY(fn,...) PFcore_apply_ ((fn), __VA_ARGS__, 0)


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to